View Source tflite_beam_tensor (tflite_beam v0.3.5)
Link to this section Summary
Functions
Get the dimensions (C++) API
Get the quantization params
Set tensor data
Get the tensor shape
Get binary data
Get binary data
Get the data type
Link to this section Types
-type tflite_beam_tensor_type() ::
no_type |
{f, 32} |
{s, 32} |
{u, 8} |
{s, 64} |
string | bool |
{s, 16} |
{c, 64} |
{s, 8} |
{f, 16} |
{f, 64} |
{c, 128} |
{u, 64} |
resource | variant |
{u, 32}.
Link to this section Functions
-spec dims(#tflite_beam_tensor{} | reference()) -> [integer()] | {error, binary()}.
-spec quantization_params(#tflite_beam_tensor{} | reference()) ->
#tflite_beam_quantization_params{} | {error, binary()}.
-spec set_data(#tflite_beam_tensor{} | reference(), binary()) -> ok | {error, binary()}.
-spec shape(#tflite_beam_tensor{} | reference()) -> tuple() | {error, binary()}.
-spec to_binary(#tflite_beam_tensor{} | reference()) -> binary() | {error, binary()}.
-spec to_binary(#tflite_beam_tensor{} | reference(), non_neg_integer()) -> binary() | {error, binary()}.
-spec type(#tflite_beam_tensor{} | reference()) -> tflite_beam_tensor_type() | {error, binary()}.