(x)
| 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__(); |
no test coverage detected