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

Method isNondeterministic

source/python.js:12684–12701  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12682 return this.getOperator().getOperation(this);
12683 }
12684 isNondeterministic() {
12685 const schema = this.maybeSchema();
12686 if (!this.kind().startsWith('aten::')) {
12687 return false;
12688 }
12689 if (!schema) {
12690 return false;
12691 }
12692 const schema_info = new torch._C.SchemaInfo(schema);
12693 if (this.hasNamedInput('train')) {
12694 throw new python.Error('Not Implemented.');
12695 // const value = constant_as<bool>(this.namedInput("train"));
12696 // if (value) {
12697 // schema_info.addArgumentValue('train', value);
12698 // }
12699 }
12700 return schema_info.is_nondeterministic();
12701 }
12702 hasSideEffects() {
12703 switch (this._kind) {
12704 case 'prim::PythonOp':

Callers 1

supportedNodeMethod · 0.80

Calls 4

maybeSchemaMethod · 0.80
hasNamedInputMethod · 0.80
is_nondeterministicMethod · 0.80
kindMethod · 0.45

Tested by

no test coverage detected