View Source tflite_beam_tensor (tflite_beam v0.3.6)

A typed multi-dimensional array used in Tensorflow Lite.

Link to this section Summary

Functions

Get the dimensions (C++) API
Get the quantization params
Get the tensor shape
Get the data type

Link to this section Types

Link to this type

tflite_beam_tensor_type/0

View Source
-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

Link to this function

dims(Tflite_beam_tensor)

View Source
-spec dims(#tflite_beam_tensor{} | reference()) -> [integer()] | {error, binary()}.
Get the dimensions (C++) API
Link to this function

quantization_params(Tflite_beam_tensor)

View Source
-spec quantization_params(#tflite_beam_tensor{} | reference()) ->
                       #tflite_beam_quantization_params{} | {error, binary()}.
Get the quantization params
Link to this function

set_data(Tflite_beam_tensor, Data)

View Source
-spec set_data(#tflite_beam_tensor{} | reference(), binary()) -> ok | {error, binary()}.
Set tensor data
Link to this function

shape(Tflite_beam_tensor)

View Source
-spec shape(#tflite_beam_tensor{} | reference()) -> tuple() | {error, binary()}.
Get the tensor shape
Link to this function

to_binary(Tflite_beam_tensor)

View Source
-spec to_binary(#tflite_beam_tensor{} | reference()) -> binary() | {error, binary()}.
Get binary data
Link to this function

to_binary(Tflite_beam_tensor, MaxBytes)

View Source
-spec to_binary(#tflite_beam_tensor{} | reference(), non_neg_integer()) -> binary() | {error, binary()}.
Get binary data
Link to this function

type(Tflite_beam_tensor)

View Source
-spec type(#tflite_beam_tensor{} | reference()) -> tflite_beam_tensor_type() | {error, binary()}.
Get the data type