(type)
| 8155 | return this.graph().inputs().length; |
| 8156 | } |
| 8157 | unshapedType(type) { |
| 8158 | if (type.isSubtypeOf(torch.TensorType.get())) { |
| 8159 | return torch.TensorType.get(); |
| 8160 | } |
| 8161 | const contained = type.containedTypes(); |
| 8162 | if (contained.length === 0) { |
| 8163 | return type; |
| 8164 | } |
| 8165 | return type.withContained(type.containedTypes((type) => this.unshapedType(type))); |
| 8166 | } |
| 8167 | defaultSchemaFor(fn) { |
| 8168 | const args = []; |
| 8169 | const returns = []; |
no test coverage detected