()
| 13164 | return this.type() instanceof torch.NoneType || this._node.mustBeNone(); |
| 13165 | } |
| 13166 | mustNotBeNone() { |
| 13167 | return this._node.kind() !== 'prim::AutogradAdd' && |
| 13168 | this.type() !== torch.NoneType.get() && |
| 13169 | !(this.type() instanceof torch.OptionalType) && |
| 13170 | !(this.type() instanceof torch.UnionType && this.type().expect(torch.UnionType).canHoldType(torch.NoneType.get())); |
| 13171 | } |
| 13172 | isValidName(name) { |
| 13173 | if (name.length === 0) { |
| 13174 | return true; |
no test coverage detected