| 569 | MGB_TYPEINFO_OBJ_IMPL(ImmutableTensor::DevValueCache::VarNodeCache); |
| 570 | |
| 571 | ImmutableTensor::ImmutableTensor( |
| 572 | ComputingGraph& graph, const Value& value, const OperatorNodeConfig& config) |
| 573 | : Super{&graph, config, value.summary(), {}}, m_value{value} { |
| 574 | mgb_assert(value.initialized()); |
| 575 | |
| 576 | add_output(value.dev().dtype()); |
| 577 | add_equivalence_component<ScalarHash<const void*>>(&value); |
| 578 | output(0)->add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE); |
| 579 | } |
| 580 | |
| 581 | ImmutableTensor::~ImmutableTensor() noexcept = default; |
| 582 |
nothing calls this directly
no test coverage detected