| 34 | } |
| 35 | |
| 36 | bool ValueRef::is(const IType& type) const { |
| 37 | return this->storage()->type() == type; |
| 38 | } |
| 39 | |
| 40 | TypedValueRef<DeviceValue> ValueRef::dev_tensor() const { |
| 41 | return imperative::apply(GetAttr(GetAttr::Data), *this)[0].cast_ref<DeviceValue>(); |
no test coverage detected