(target)
| 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; |
no outgoing calls
no test coverage detected