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

Method read_record

source/python.js:14347–14350  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

14345 const buffer = stream.peek();
14346 const tensor_dir_path = tensor_prefix ? tensor_prefix : `${archive_name}/`;
14347 const read_record = (name) => {
14348 const stream = stream_reader.get_record(tensor_dir_path + name);
14349 return stream.length <= 0x40000 ? stream.peek() : stream;
14350 };
14351 const execution = this._compilation_unit.execution;
14352 const pickle = execution.__import__('pickle');
14353 const Unpickler = class extends pickle.Unpickler {

Callers

nothing calls this directly

Calls 2

get_recordMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected