Synopsis
Declared in <llvm/Analysis/TensorSpec.h>
class TensorSpec final
Member Functions
Name |
Description |
|
|
Get the size, in bytes, of one element. |
|
Get the number of elements in a tensor with this shape. |
|
Get the total size of a memory buffer needed to store the whole tensor. |
|
Equality operator |
|
Inequality operator |
Static Member Functions
Name |
Non-Member Functions
Name |
Description |
Construct a TensorSpec from a JSON dictionary of the form: { "name": <string>, "port": <int>, "type": <string. Use LLVM's types, e.g. float, double, int64_t>, "shape": <array of ints> } For the "type" field, see the C++ primitive types used in TFUTILS_SUPPORTED_TYPES. |
Created with MrDocs