import { io } from '@tensorflow/tfjs-core' ; param modelArtifacts returns export function getModelArtifactsInfoForJSON ( modelArtifacts ) { if ( modelArtifacts . modelTopology instanceof ArrayBuffer ) { throw new Error ( 'Expected JSON model topology, received ArrayBuffer.' ) ; } return { dateSaved : new Date ( ) , modelTopologyType : 'JSON' , weightDataBytes : modelArtifacts . weightData == null ? 0 : modelArtifacts . weightData . byteLength , } ; }