(name)
| 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; |
| 13175 | } |
| 13176 | if (torch._C.isNumber(name)) { |
| 13177 | return false; |
| 13178 | } |
| 13179 | return true; |
| 13180 | } |
| 13181 | hasDebugName() { |
| 13182 | return this._unique_name && this._unique_name.length > 0; |
| 13183 | } |