Home
last modified time | relevance | path

Searched refs:AddTensor (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/
Dverifier_test.cc83 void AddTensor(const std::vector<int>& shape, tflite::TensorType type, in AddTensor() function in tflite::TfLiteFlatbufferModelBuilder
177 builder.AddTensor({2, 3}, TensorType_UINT8, {1, 2, 3, 4, 5, 6}, "input"); in TEST()
178 builder.AddTensor({}, TensorType_UINT8, {}, "empty_vector"); in TEST()
179 builder.AddTensor( in TEST()
183 builder.AddTensor({2, 3}, TensorType_INT32, {}, "output"); in TEST()
191 builder.AddTensor({2, 3}, TensorType_UINT8, {1, 2, 3, 4, 5, 6}, "input"); in TEST()
192 builder.AddTensor( in TEST()
196 builder.AddTensor({2, 3}, TensorType_INT32, {}, "output"); in TEST()
225 builder.AddTensor({2, 3}, TensorType_UINT8, {1, 2, 3, 4, 5, 6}, "input"); in TEST()
226 builder.AddTensor( in TEST()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dsession_state.cc37 Status SessionState::AddTensor(const string& handle, const Tensor& tensor) { in AddTensor() function in tensorflow::SessionState
60 Status TensorStore::AddTensor(const string& name, const TensorAndKey& tk) { in AddTensor() function in tensorflow::TensorStore
82 TF_RETURN_IF_ERROR(session_state->AddTensor(key, it->second.tensor)); in SaveTensors()
/external/tensorflow/tensorflow/core/framework/
Dsession_state.h37 Status AddTensor(const std::string& handle, const Tensor& tensor);
71 Status AddTensor(const std::string& name, const TensorAndKey& tk);
Ddataset.cc501 return AddTensor(t, output); in AddDatasetOrTensor()
Ddataset.h192 Status AddTensor(const Tensor& val, Node** output) { in AddTensor() function
/external/tensorflow/tensorflow/lite/micro/
Dtest_helpers.cc92 Tensor AddTensor(TensorType type, std::initializer_list<int32_t> shape) { in AddTensor() function in tflite::testing::__anon4d49c9e80111::ModelBuilder
264 const int input_tensor = model_builder.AddTensor(TensorType_UINT8, {3}); in BuildSimpleStatefulModel()
265 const int median_tensor = model_builder.AddTensor(TensorType_UINT8, {3}); in BuildSimpleStatefulModel()
267 model_builder.AddTensor(TensorType_INT32, {1}); in BuildSimpleStatefulModel()
305 const int t0 = model_builder.AddTensor(TensorType_FLOAT32, {2, 2, 3}); in BuildSimpleModelWithBranch()
306 const int t1 = model_builder.AddTensor(TensorType_FLOAT32, {2, 2, 3}); in BuildSimpleModelWithBranch()
307 const int t2 = model_builder.AddTensor(TensorType_FLOAT32, {2, 2, 3}); in BuildSimpleModelWithBranch()
308 const int t3 = model_builder.AddTensor(TensorType_FLOAT32, {2, 2, 3}); in BuildSimpleModelWithBranch()
329 model_builder.AddTensor(TensorType_FLOAT32, {2, 2, 3}); in BuildModelWithOfflinePlanning()
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.cc88 id = AddTensor<float>(t, {}); in AddInput()
99 id = AddTensor<float>(t, {}, true); in AddVariableInput()
130 int id = AddTensor<float>(t, {}); in AddOutput()
Dtest_util.h205 id = AddTensor(t, data); in AddConstInput()
630 int AddTensor(TensorData t, std::initializer_list<T> data,
1017 return AddTensor<T>(t, {}, false);
/external/tensorflow/tensorflow/core/kernels/data/
Dsparse_tensor_slice_dataset_op.cc70 TF_RETURN_IF_ERROR(b->AddTensor(sparse_tensor_.indices(), &indices_node)); in AsGraphDefInternal()
72 TF_RETURN_IF_ERROR(b->AddTensor(sparse_tensor_.values(), &value_node)); in AsGraphDefInternal()
Dpadded_batch_dataset_op.cc148 TF_RETURN_IF_ERROR(b->AddTensor(t, &node)); in AsGraphDefInternal()
156 TF_RETURN_IF_ERROR(b->AddTensor(t, &node)); in AsGraphDefInternal()
Dshuffle_dataset_op.cc534 TF_RETURN_IF_ERROR(b->AddTensor(handle, &resource_handle_node)); in AsGraphDefInternal()
593 TF_RETURN_IF_ERROR(b->AddTensor(handle, &resource_handle_node)); in AsGraphDefInternal()
844 TF_RETURN_IF_ERROR(b->AddTensor(handle, &resource_handle_node)); in AsGraphDefInternal()
Dcache_dataset_ops.cc651 TF_RETURN_IF_ERROR(b->AddTensor(resource_handle_, &resource_handle_node)); in AsGraphDefInternal()
1006 TF_RETURN_IF_ERROR(b->AddTensor(handle, &resource_handle_node)); in AsGraphDefInternal()
Dcaptured_function.cc578 TF_RETURN_IF_ERROR(b->AddTensor(t, &node)); in AddToGraph()
/external/tensorflow/tensorflow/core/kernels/
Dsession_ops.cc53 OP_REQUIRES_OK(ctx, ctx->tensor_store()->AddTensor(name(), tk)); in Compute()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dset_stats_aggregator_dataset_op.cc158 TF_RETURN_IF_ERROR(b->AddTensor(resource_handle_, &resource_handle_node)); in AsGraphDefInternal()
Dscan_dataset_op.cc138 TF_RETURN_IF_ERROR(b->AddTensor(t, &node)); in AsGraphDefInternal()
Dthreadpool_dataset_op.cc193 TF_RETURN_IF_ERROR(b->AddTensor(resource_handle_, &resource_handle_node)); in AsGraphDefInternal()
Dcsv_dataset_op.cc223 TF_RETURN_IF_ERROR(b->AddTensor(t, &node)); in AsGraphDefInternal()
Ddata_service_dataset_op.cc201 TF_RETURN_IF_ERROR(b->AddTensor(handle, &iteration_counter_handle)); in AsGraphDefInternal()
Dparse_example_dataset_op.cc300 TF_RETURN_IF_ERROR(b->AddTensor(dense_default, &node)); in AsGraphDefInternal()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc786 return AddTensor(tensor_index, hybrid_op, &augmented_inputs_, tensor_flags); in AddTensorInput()
790 return AddTensor(tensor_index, /*hybrid_op=*/false, &augmented_outputs_, in AddTensorOutput()
1257 TfLiteStatus AddTensor(int tensor_index, bool hybrid_op, in AddTensor() function in tflite::delegate::nnapi::NNAPIOpBuilder