| 55 | } |
| 56 | |
| 57 | TypedValueRef<DTypeValue> ValueRef::dtype() const { |
| 58 | return imperative::apply(GetAttr(GetAttr::DType), *this)[0].cast_ref<DTypeValue>(); |
| 59 | } |
| 60 | |
| 61 | TypedValueRef<FormatValue> ValueRef::format() const { |
| 62 | return imperative::apply(GetFormat(), *this)[0].as_ref<FormatValue>(); |