MCPcopy Index your code
hub / github.com/lutzroeder/netron / readArchive

Method readArchive

source/python.js:14330–14338  ·  view source on GitHub ↗
(archive_name)

Source from the content-addressed store, hash-verified

14328 return module;
14329 }
14330 readArchive(archive_name) {
14331 const type_resolver = (qn) => {
14332 const cls = this._source_importer.loadType(qn);
14333 return cls;
14334 };
14335 const ObjLoaderFunc = (/* type, ivalue */) => {
14336 };
14337 return this.readArchiveAndTensors(archive_name, this._pickle_dir_prefix, this._tensor_dir_prefix, type_resolver, ObjLoaderFunc, this._device, this._reader, null, this._storage_context);
14338 }
14339 readArchiveAndTensors(archive_name, pickle_prefix, tensor_prefix, type_resolver, obj_loader, device, stream_reader, type_parser, storage_context) {
14340 const picklename = `${pickle_prefix + archive_name}.pkl`;
14341 const stream = stream_reader.get_record(picklename);

Callers 1

deserializeMethod · 0.80

Calls 1

readArchiveAndTensorsMethod · 0.80

Tested by

no test coverage detected