MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TensorView

Method TensorView

include/tvm/ffi/container/tensor.h:677–680  ·  view source on GitHub ↗

! * \brief Create a TensorView from a Tensor. * \param tensor The input Tensor. */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

definedMethod · 0.80
GetDLTensorPtrMethod · 0.80

Tested by

no test coverage detected