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

Method deserialize_argument_spec

source/python.js:20515–20524  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

20513 return ret;
20514 }
20515 deserialize_argument_spec(x) {
20516 if (x.type === 'as_tensor') {
20517 return new torch.export.graph_signature.TensorArgument(x.as_tensor.name);
20518 } else if (x.type === 'as_sym_int') {
20519 return new torch.export.graph_signature.SymIntArgument(x.as_sym_int.as_name);
20520 } else if (x.type === 'as_custom_obj') {
20521 return new torch.export.graph_signature.ConstantArgument(x.as_custom_obj.name, this.deserialize_input(x));
20522 }
20523 return new torch.export.graph_signature.ConstantArgument('', this.deserialize_input(x));
20524 }
20525 deserialize_tensor_meta(tensor_meta) {
20526 try {
20527 this.fake_tensor_mode.__enter__();

Callers 2

Calls 1

deserialize_inputMethod · 0.80

Tested by

no test coverage detected