(type)
| 13229 | return this._type; |
| 13230 | } |
| 13231 | setType(type) { |
| 13232 | // torch._C.AT_ASSERT(type instanceof torch.Type); |
| 13233 | if (type instanceof torch._C.DynamicType) { |
| 13234 | type = type.fallback(); |
| 13235 | } |
| 13236 | this._type = type; |
| 13237 | for (const use of this._uses) { |
| 13238 | use.user._op = null; |
| 13239 | } |
| 13240 | return this; |
| 13241 | } |
| 13242 | set value(value) { // remove |
| 13243 | if (value instanceof torch.Value) { |
| 13244 | throw new python.Error('Value cannot be a value.'); |
no test coverage detected