Expand description
MNN::Tensor related items
Modules§
Structs§
- AnyTensor
Ref - This is a zero sized type
- Device
- A tensor that is owned by the device / gpu platform
- Host
- A tensor that is owned by the cpu / host platform
- Owned
- A tensor that is owned by the host / device platform
- Tensor
- A generic tensor that can of host / device / owned / borrowed
- Tensor
Ref - This is modeled as a reference to a tensor, you should never be able to dereference this. At any point you should only have &TensorRef or &mut TensorRef, never an owned TensorRef.
- Tensor
Shape - A tensor shape
- View
- A reference to a any tensor
Enums§
- Dimension
Type - The type of the tensor dimension If you are manually specifying the shapes then this doesn’t really matter N -> Batch size C -> Channel H -> Height W -> Width
Traits§
- AsTensor
Shape - A trait to convert any array-like type to a tensor shape
- Mutable
Tensor Type - A trait to represent a mutable tensor type
- Tensor
Machine - A trait to represent the device type of a tensor
- Tensor
Type - A trait to represent the type of a tensor
Functions§
- from_
raw_ ⚠parts - Construct a tensor reference from a raw pointer to an MNN tensor
- from_
raw_ ⚠parts_ mut - Construct a mutable tensor reference from a raw pointer to an MNN tensor
Type Aliases§
- Tensor
Owned - A tensor that can be owned by the host or device
- Tensor
View - A tensor that can be borrowed from the host or device
- Tensor
View Mut - A tensor that can be borrowed mutably from the host or device