Class RMMTensor#
Defined in File rmm_tensor.hpp
Inheritance Relationships#
Base Type#
public morpheus::ITensor
(Struct ITensor)
Class Documentation#
-
class RMMTensor : public morpheus::ITensor#
TODO(Documentation)
Public Functions
- std::shared_ptr<rmm::device_buffer> device_buffer,
- TensorSize offset,
- DType dtype,
- ShapeType shape,
- ShapeType stride = {}
-
~RMMTensor() override = default#
-
virtual bool is_compact() const final#
TODO(Documentation)
- virtual std::shared_ptr<ITensor> reshape(
- const ShapeType &dims
TODO(Documentation)
- virtual std::shared_ptr<ITensor> copy_rows(
- const std::vector<RangeType> &selected_rows,
- TensorIndex num_rows
Creates a depp copy of the specified rows specified as vector<pair<start, stop>> not inclusive of the stop row.
- Parameters:
selected_rows –
num_rows –
- Returns:
std::shared_ptr<ITensor>
- virtual std::shared_ptr<MemoryDescriptor> get_memory(
TODO(Documentation)
-
virtual TensorSize bytes() const final#
TODO(Documentation)
-
virtual TensorSize count() const final#
TODO(Documentation)
-
virtual TensorIndex shape(TensorIndex idx) const final#
TODO(Documentation)
-
virtual TensorIndex stride(TensorIndex idx) const final#
TODO(Documentation)
-
virtual void *data() const override#
TODO(Documentation)
-
virtual intptr_t stream() const override#