Home
last modified time | relevance | path

Searched refs:TfLiteTensor (Results 1 – 25 of 108) sorted by relevance

12345

/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/
A Dlstm_eval.h124 TfLiteTensor* cell_state, TfLiteTensor* output);
161 TfLiteTensor* scratch_buffer, TfLiteTensor* input_sf,
166 TfLiteTensor* output_state, TfLiteTensor* cell_state,
168 TfLiteTensor* input_zp, TfLiteTensor* aux_input_zp,
193 TfLiteTensor* output_state, TfLiteTensor* cell_state, TfLiteTensor* output,
194 TfLiteTensor* scratch0, TfLiteTensor* scratch1, TfLiteTensor* scratch2,
195 TfLiteTensor* scratch3, TfLiteTensor* scratch4, TfLiteTensor* scratch5,
218 TfLiteTensor* cell_state, TfLiteTensor* output,
220 TfLiteTensor* scratch0, TfLiteTensor* scratch1, TfLiteTensor* scratch2,
221 TfLiteTensor* scratch3, TfLiteTensor* scratch4, TfLiteTensor* scratch5,
[all …]
A Dkernel_util.h40 const TfLiteTensor* GetInput(const TfLiteContext* context,
120 TfLiteTensor** tensor);
144 TfLiteTensor** tensor);
169 inline int64_t NumElements(const TfLiteTensor* t) { in NumElements()
189 inline void SetTensorToDynamic(TfLiteTensor* tensor) { in SetTensorToDynamic()
206 inline bool IsHybridOp(const TfLiteTensor* input, const TfLiteTensor* weight) { in IsHybridOp()
213 TfLiteContext* context, const TfLiteTensor* input,
214 const TfLiteTensor* filter, const TfLiteTensor* bias, TfLiteTensor* output,
220 TfLiteContext* context, const TfLiteTensor* input,
221 const TfLiteTensor* filter, const TfLiteTensor* bias, TfLiteTensor* output,
[all …]
A Dkernel_util.cc109 const TfLiteTensor* GetInput(const TfLiteContext* context, in GetInput()
121 TfLiteTensor* tensor = GetMutableInput(context, node, index); in GetVariableInput()
136 int index, TfLiteTensor** tensor) { in GetOutputSafe()
163 TfLiteTensor** tensor) { in GetTemporarySafe()
172 const TfLiteTensor* GetIntermediates(TfLiteContext* context, in GetIntermediates()
184 TfLiteTensor** tensor) { in GetIntermediatesSafe()
196 TfLiteContext* context, const TfLiteTensor* input, in PopulateConvolutionQuantizationParams()
197 const TfLiteTensor* filter, const TfLiteTensor* bias, TfLiteTensor* output, in PopulateConvolutionQuantizationParams()
211 TfLiteContext* context, const TfLiteTensor* input, in PopulateConvolutionQuantizationParams()
212 const TfLiteTensor* filter, const TfLiteTensor* bias, TfLiteTensor* output, in PopulateConvolutionQuantizationParams()
[all …]
A Dsubgraph_test_util.h141 void FillIntTensor(TfLiteTensor* tensor, const std::vector<int32_t>& data);
146 void FillScalarStringTensor(TfLiteTensor* tensor, const std::string& data);
149 void CheckScalarStringTensor(const TfLiteTensor* tensor,
153 void CheckStringTensor(const TfLiteTensor* tensor,
158 void CheckIntTensor(const TfLiteTensor* tensor, const std::vector<int>& shape,
161 void CheckBoolTensor(const TfLiteTensor* tensor, const std::vector<int>& shape,
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/c/
A Dc_api.h91 typedef struct TfLiteTensor TfLiteTensor; typedef
166 TFL_CAPI_EXPORT extern TfLiteTensor* TfLiteInterpreterGetInputTensor(
230 TFL_CAPI_EXPORT extern const TfLiteTensor* TfLiteInterpreterGetOutputTensor(
242 TFL_CAPI_EXPORT extern TfLiteType TfLiteTensorType(const TfLiteTensor* tensor);
245 TFL_CAPI_EXPORT extern int32_t TfLiteTensorNumDims(const TfLiteTensor* tensor);
249 TFL_CAPI_EXPORT extern int32_t TfLiteTensorDim(const TfLiteTensor* tensor,
253 TFL_CAPI_EXPORT extern size_t TfLiteTensorByteSize(const TfLiteTensor* tensor);
261 TFL_CAPI_EXPORT extern void* TfLiteTensorData(const TfLiteTensor* tensor);
271 const TfLiteTensor* tensor);
276 TfLiteTensor* tensor, const void* input_data, size_t input_data_size);
[all …]
A Dcommon.h393 typedef struct TfLiteTensor { struct
456 } TfLiteTensor; argument
513 typedef struct TfLiteTensor { struct
549 } TfLiteTensor; argument
599 void TfLiteTensorDataFree(TfLiteTensor* t);
608 void TfLiteTensorFree(TfLiteTensor* t);
615 TfLiteTensor* tensor);
619 void TfLiteTensorRealloc(size_t num_bytes, TfLiteTensor* tensor);
682 TfLiteTensor* tensors;
924 TfLiteTensor* tensor);
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/resource/
A Dlookup_interfaces.h35 virtual TfLiteStatus Lookup(TfLiteContext* context, const TfLiteTensor* keys,
36 TfLiteTensor* values,
37 const TfLiteTensor* default_value) = 0;
38 virtual TfLiteStatus Import(TfLiteContext* context, const TfLiteTensor* keys,
39 const TfLiteTensor* values) = 0;
45 const TfLiteTensor* keys,
46 const TfLiteTensor* values) = 0;
A Dstatic_hashtable.h43 TfLiteStatus Lookup(TfLiteContext* context, const TfLiteTensor* keys,
44 TfLiteTensor* values,
45 const TfLiteTensor* default_value) override;
48 TfLiteStatus Import(TfLiteContext* context, const TfLiteTensor* keys,
49 const TfLiteTensor* values) override;
58 const TfLiteTensor* keys, in CheckKeyAndValueTypes()
59 const TfLiteTensor* values) override { in CheckKeyAndValueTypes()
A Dlookup_util.h29 explicit TensorReader(const TfLiteTensor* input) { in TensorReader()
47 explicit TensorReader(const TfLiteTensor* input) : input_(input) {} in TensorReader()
58 const TfLiteTensor* input_;
66 explicit TensorWriter(TfLiteTensor* values) { in TensorWriter()
91 explicit TensorWriter(TfLiteTensor* values) : values_(values) {} in TensorWriter()
106 TfLiteTensor* values_;
A Dstatic_hashtable.cc27 TfLiteContext* context, const TfLiteTensor* keys, TfLiteTensor* values, in Lookup()
28 const TfLiteTensor* default_value) { in Lookup()
61 TfLiteContext* context, const TfLiteTensor* keys, in Import()
62 const TfLiteTensor* values) { in Import()
A Dresource_variable.h39 TfLiteStatus AssignFrom(const TfLiteTensor* tensor);
44 TfLiteTensor* GetTensor() { return is_initialized_ ? &tensor_ : nullptr; } in GetTensor()
52 TfLiteTensor tensor_;
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/
A DInterpreter.cs22 using TfLiteTensor = System.IntPtr; typedef
125 TfLiteTensor tensor = TfLiteInterpreterGetInputTensor(interpreter, index); in GetInputTensorInfo()
143 private static string GetTensorName(TfLiteTensor tensor) { in GetTensorName()
147 private static TensorInfo GetTensorInfo(TfLiteTensor tensor) { in GetTensorInfo()
229 private static extern unsafe TfLiteTensor TfLiteInterpreterGetInputTensor( in TfLiteInterpreterGetInputTensor()
252 private static extern unsafe TfLiteTensor TfLiteInterpreterGetOutputTensor( in TfLiteInterpreterGetOutputTensor()
260 private static extern unsafe int TfLiteTensorNumDims(TfLiteTensor tensor); in TfLiteTensorNumDims()
266 private static extern uint TfLiteTensorByteSize(TfLiteTensor tensor); in TfLiteTensorByteSize()
269 private static extern unsafe IntPtr TfLiteTensorName(TfLiteTensor tensor); in TfLiteTensorName()
276 TfLiteTensor tensor, in TfLiteTensorCopyFromBuffer()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/
A Dmicro_interpreter.h72 TfLiteTensor* input(size_t index);
79 TfLiteTensor* input_tensor(size_t index) { return input(index); } in input_tensor()
82 if (TfLiteTensor* tensor_ptr = input_tensor(tensor_index)) { in typed_input_tensor()
90 TfLiteTensor* output(size_t index);
97 TfLiteTensor* output_tensor(size_t index) { return output(index); } in output_tensor()
100 if (TfLiteTensor* tensor_ptr = output_tensor(tensor_index)) { in typed_output_tensor()
151 static TfLiteTensor* GetTensor(const struct TfLiteContext* context,
172 TfLiteTensor** input_tensors_;
173 TfLiteTensor** output_tensors_;
A Dtest_helpers.h152 void PopulateContext(TfLiteTensor* tensors, int tensors_size,
164 TfLiteTensor CreateTensor(const T* data, TfLiteIntArray* dims,
166 TfLiteTensor result;
184 TfLiteTensor CreateQuantizedTensor(const T* data, TfLiteIntArray* dims,
187 TfLiteTensor result = CreateTensor(data, dims, is_variable);
194 TfLiteTensor CreateQuantizedTensor(const float* input, T* quantized,
202 TfLiteTensor CreateQuantizedBiasTensor(const float* data, int32_t* quantized,
209 TfLiteTensor CreatePerChannelQuantizedBiasTensor(
215 TfLiteTensor CreateSymmetricPerChannelQuantizedTensor(
A Dmicro_allocator.h41 ErrorReporter* error_reporter, TfLiteTensor* result);
157 virtual TfLiteTensor* AllocatePersistentTfLiteTensor(
168 virtual TfLiteTensor* AllocateTempTfLiteTensor(
230 virtual TfLiteTensor* AllocatePersistentTfLiteTensorInternal();
236 TfLiteTensor* tensor,
A Dmemory_helpers.h53 const TfLiteTensor* input1,
54 const TfLiteTensor* input2,
55 TfLiteTensor* output);
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/kernels/
A Dconv_test.h29 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
33 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
37 TfLiteStatus InvokeConv(TfLiteTensor* tensors, int tensors_size,
41 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
48 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
55 TfLiteStatus ValidateConvGoldens(TfLiteTensor* tensors, int tensors_size,
A Dfully_connected.h60 TfLiteType data_type, const TfLiteTensor* input, const TfLiteTensor* filter,
61 const TfLiteTensor* bias, TfLiteTensor* output, OpDataFullyConnected* data);
A Dfully_connected_common.cc57 TfLiteType data_type, const TfLiteTensor* input, const TfLiteTensor* filter, in CalculateOpDataFullyConnected()
58 const TfLiteTensor* bias, TfLiteTensor* output, in CalculateOpDataFullyConnected()
A Dfill.cc31 const TfLiteTensor* tensor) { in EnsureEqImpl()
41 const TfLiteTensor* tensor) { in EnsureEq()
71 const TfLiteTensor* dims; in Prepare()
73 const TfLiteTensor* value; in Prepare()
75 TfLiteTensor* output; in Prepare()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/
A Dtensor.h28 SequentialTensorWriter(const TfLiteTensor* input, TfLiteTensor* output) in SequentialTensorWriter()
40 const TfLiteTensor* input_;
41 TfLiteTensor* output_;
A Dtensor_ctypes.h24 inline T* GetTensorData(TfLiteTensor* tensor) { in GetTensorData()
29 inline const T* GetTensorData(const TfLiteTensor* tensor) { in GetTensorData()
34 inline RuntimeShape GetTensorShape(const TfLiteTensor* tensor) { in GetTensorShape()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/kernels/
A Dctc_beam_search_decoder.cc65 const TfLiteTensor* inputs; in Prepare()
73 const TfLiteTensor* sequence_length; in Prepare()
84 TfLiteTensor* indices; in Prepare()
87 TfLiteTensor* values; in Prepare()
91 TfLiteTensor* output_shape; in Prepare()
98 TfLiteTensor* log_probability_output; in Prepare()
139 TfLiteTensor* indices; in StoreAllDecodedSequences()
143 TfLiteTensor* values; in StoreAllDecodedSequences()
148 TfLiteTensor* decoded_shape; in StoreAllDecodedSequences()
178 const TfLiteTensor* inputs; in Eval()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/
A Dstring_util.h87 void WriteToTensor(TfLiteTensor* tensor, TfLiteIntArray* new_shape);
90 void WriteToTensorAsVector(TfLiteTensor* tensor);
101 int GetStringCount(const TfLiteTensor* tensor);
106 StringRef GetString(const TfLiteTensor* tensor, int string_index);
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/
A Dstring_comparisons.h42 const TfLiteTensor* input1, in ComparisonStringImpl()
44 const TfLiteTensor* input2, in ComparisonStringImpl()
58 const RuntimeShape& unextended_input1_shape, const TfLiteTensor* input1, in BroadcastComparison4DSlowStringImpl()
59 const RuntimeShape& unextended_input2_shape, const TfLiteTensor* input2, in BroadcastComparison4DSlowStringImpl()

Completed in 48 milliseconds

12345