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

Method deserialize_signature

source/python.js:20140–20144  ·  view source on GitHub ↗
(sig)

Source from the content-addressed store, hash-verified

20138 throw new python.Error(`Unknown output spec ${o}.`);
20139 }
20140 deserialize_signature(sig) {
20141 return new torch.export.graph_signature.ExportGraphSignature(
20142 sig.input_specs.map((i) => this.deserialize_input_spec(i)),
20143 sig.output_specs.map((o) => this.deserialize_output_spec(o)));
20144 }
20145 deserialize(serialized_graph_module, serialized_state_dict, constants, example_inputs, symbol_name_to_range) {
20146 if (torch._export.serde.serialize._CURRENT_DESERIALIZER) {
20147 throw new python.Error('_CURRENT_DESERIALIZER is already set.');

Callers 1

deserializeMethod · 0.80

Calls 3

mapMethod · 0.80

Tested by

no test coverage detected