Defined in File tensor_object.hpp
Base Types
public morpheus::ITensorStorage
(Struct ITensorStorage)public morpheus::ITensorOperations
(Struct ITensorOperations)
Derived Type
public morpheus::RMMTensor
(Class RMMTensor)
-
struct ITensor : public morpheus::ITensorStorage, public morpheus::ITensorOperations
Subclassed by morpheus::RMMTensor
Public Functions
-
~ITensor() override = default
-
virtual RankType rank() const = 0
-
virtual std::size_t count() const = 0
-
virtual DataType dtype() const = 0
-
virtual std::size_t shape(std::size_t) const = 0
-
virtual std::size_t stride(std::size_t) const = 0
-
virtual bool is_compact() const = 0
-
inline std::vector<std::size_t> get_shape() const
-
inline std::vector<std::size_t> get_stride() const
-
~ITensor() override = default