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

Method unshapedType

source/python.js:8157–8166  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

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 = [];

Callers 6

optimizeBlockMethod · 0.80
defaultSchemaForMethod · 0.80
setSugaredVarMethod · 0.80
constructorMethod · 0.80
attrMethod · 0.80

Calls 4

isSubtypeOfMethod · 0.80
containedTypesMethod · 0.80
withContainedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected