MCPcopy
hub / github.com/lutzroeder/netron / setType

Method setType

source/python.js:13231–13241  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

13229 return this._type;
13230 }
13231 setType(type) {
13232 // torch._C.AT_ASSERT(type instanceof torch.Type);
13233 if (type instanceof torch._C.DynamicType) {
13234 type = type.fallback();
13235 }
13236 this._type = type;
13237 for (const use of this._uses) {
13238 use.user._op = null;
13239 }
13240 return this;
13241 }
13242 set value(value) { // remove
13243 if (value instanceof torch.Value) {
13244 throw new python.Error('Value cannot be a value.');

Callers 15

makeSugaredMethod · 0.80
propagateNodeMethod · 0.80
combineConcatsMethod · 0.80
createNoneMethod · 0.80
createUninitializedMethod · 0.80
createEnumValueMethod · 0.80
createListMethod · 0.80
createListUnpackMethod · 0.80
createTupleMethod · 0.80
createTupleUnpackMethod · 0.80
createTupleIndexMethod · 0.80
createDictMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected