#include <TensorSpec.h>
Definition at line 53 of file TensorSpec.h.
◆ TensorSpec() [1/2]
◆ TensorSpec() [2/2]
◆ createSpec()
◆ getDataType()
template<typename T >
| static TensorType MLBridge::TensorSpec::getDataType |
( |
| ) |
|
|
staticprivate |
◆ getElementByteSize()
| size_t MLBridge::TensorSpec::getElementByteSize |
( |
| ) |
const |
|
inline |
Get the size, in bytes, of one element.
Definition at line 81 of file TensorSpec.h.
◆ getElementCount()
| size_t MLBridge::TensorSpec::getElementCount |
( |
| ) |
const |
|
inline |
Get the number of elements in a tensor with this shape.
Definition at line 79 of file TensorSpec.h.
◆ getTotalTensorBufferSize()
| size_t MLBridge::TensorSpec::getTotalTensorBufferSize |
( |
| ) |
const |
|
inline |
Get the total size of a memory buffer needed to store the whole tensor.
Definition at line 83 of file TensorSpec.h.
◆ isElementType()
| bool MLBridge::TensorSpec::isElementType |
( |
| ) |
const |
|
inline |
◆ name()
| const std::string & MLBridge::TensorSpec::name |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ port()
| int MLBridge::TensorSpec::port |
( |
| ) |
const |
|
inline |
◆ setShape()
◆ shape()
| const std::vector< int64_t > & MLBridge::TensorSpec::shape |
( |
| ) |
const |
|
inline |
◆ toJSON()
| void MLBridge::TensorSpec::toJSON |
( |
llvm::json::OStream & | OS | ) |
const |
◆ type()
◆ ElementCount
| size_t MLBridge::TensorSpec::ElementCount = 0 |
|
private |
◆ ElementSize
| size_t MLBridge::TensorSpec::ElementSize = 0 |
|
private |
◆ Name
| std::string MLBridge::TensorSpec::Name |
|
private |
◆ Port
| int MLBridge::TensorSpec::Port = 0 |
|
private |
◆ Shape
| std::vector<int64_t> MLBridge::TensorSpec::Shape |
|
private |
◆ Type
The documentation for this class was generated from the following files: