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

Method _get_schema_from_target

source/python.js:20615–20620  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

20613 return new torch.device(d.type, d.index);
20614 }
20615 _get_schema_from_target(target) {
20616 if (target instanceof torch._ops.OpOverload) {
20617 return target._schema;
20618 }
20619 throw new python.Error(`Unsupported schema '${target.name}'.`);
20620 }
20621 _is_single_tensor_return(target) {
20622 const schema = this._get_schema_from_target(target);
20623 const returns = schema.returns;

Callers 2

deserialize_inputsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected