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

Method withContained

source/python.js:10415–10422  ·  view source on GitHub ↗
(contained_types)

Source from the content-addressed store, hash-verified

10413 return this.containedTypes()[i];
10414 }
10415 withContained(contained_types) {
10416 const current_contained = this.containedTypes();
10417 torch._C.TORCH_INTERNAL_ASSERT(current_contained.length > 0 && current_contained.length === contained_types.length);
10418 if (current_contained.length === contained_types.length && current_contained.every((x, index) => x === contained_types[index])) {
10419 return this;
10420 }
10421 return this.createWithContained(contained_types);
10422 }
10423 createWithContained(/* createWithContained */) {
10424 throw new python.Error('Not implemented.');
10425 }

Callers 2

unshapedTypeMethod · 0.80
constructorMethod · 0.80

Calls 2

containedTypesMethod · 0.80
createWithContainedMethod · 0.80

Tested by

no test coverage detected