| 674 | } |
| 675 | |
| 676 | ShapeValue::ref_t CompiledTransformation::TracedValue::shape() const { |
| 677 | if (!m_shape) { |
| 678 | trace_assert(m_accessor->shape_getter, "shape unreadable"); |
| 679 | if (m_accessor->is_imperative()) { |
| 680 | return m_imperative_value.shape(); |
| 681 | } |
| 682 | m_shape = ShapeValue::make(ValueShape::from(m_accessor->shape_getter())); |
| 683 | } |
| 684 | return m_shape; |
| 685 | } |
| 686 | |
| 687 | DTypeValue::ref_t CompiledTransformation::TracedValue::dtype() const { |
| 688 | return m_var->dtype; |
no test coverage detected