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

Method mustBeNone

source/python.js:12650–12654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12648 return true;
12649 }
12650 mustBeNone() {
12651 return this._kind === 'prim::AutogradZero' ||
12652 (this.outputs().length === 1 && this.output().type() === torch.NoneType.get()) ||
12653 (this._kind === 'prim::Constant' && !this.hasAttributes() && this.output().type() instanceof torch.OptionalType);
12654 }
12655 maybeSchema() {
12656 const op = this.maybeOperator();
12657 if (op) {

Callers 2

optimizeBlockMethod · 0.80
constructorMethod · 0.80

Calls 5

hasAttributesMethod · 0.80
outputsMethod · 0.45
typeMethod · 0.45
outputMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected