| 585 | } |
| 586 | |
| 587 | Tensor::Tensor( |
| 588 | BlobPtr blob, const TensorLayout& layout, size_t offset, const HostTensorND& hv) |
| 589 | : m_cn(blob->comp_node()), |
| 590 | m_shape(layout), |
| 591 | m_dtype(layout.dtype), |
| 592 | m_layout(layout), |
| 593 | m_blob(std::move(blob)), |
| 594 | m_offset(offset), |
| 595 | m_value(hv) {} |
| 596 | |
| 597 | Tensor::Tensor(const HostTensorND& hv) : Tensor(hv.layout(), hv.comp_node()) { |
| 598 | constexpr int size_threshold = TensorShape::MAX_NDIM; |
nothing calls this directly
no test coverage detected