()
| 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': |
no test coverage detected