| 38 | } |
| 39 | |
| 40 | TypedValueRef<DeviceValue> ValueRef::dev_tensor() const { |
| 41 | return imperative::apply(GetAttr(GetAttr::Data), *this)[0].cast_ref<DeviceValue>(); |
| 42 | } |
| 43 | |
| 44 | TypedValueRef<HostValue> ValueRef::numpy() const { |
| 45 | return imperative::apply(GetAttr(GetAttr::Value), *this)[0].cast_ref<HostValue>(); |