! * \brief Create a TensorView from a Tensor. * \param tensor The input Tensor. */
| 675 | * \param tensor The input Tensor. |
| 676 | */ |
| 677 | TensorView(const Tensor& tensor) { // NOLINT(*) |
| 678 | TVM_FFI_ICHECK(tensor.defined()); |
| 679 | tensor_ = *tensor.GetDLTensorPtr(); |
| 680 | } // NOLINT(*) |
| 681 | /*! |
| 682 | * \brief Create a TensorView from a DLTensor. |
| 683 | * \param tensor The input DLTensor. |
nothing calls this directly
no test coverage detected