Home
last modified time | relevance | path

Searched refs:tensor_content (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/
Dtensorflow_util.cc120 if (!tensor.tensor_content().empty()) { in LogDumpGraphDef()
122 tensor.tensor_content().size()); in LogDumpGraphDef()
125 CHECK_EQ(0, tensor.tensor_content().size() % sizeof(int32)); in LogDumpGraphDef()
126 const int size = tensor.tensor_content().size() / sizeof(int32); in LogDumpGraphDef()
128 toco::port::CopyToBuffer(tensor.tensor_content(), in LogDumpGraphDef()
141 CHECK_EQ(0, tensor.tensor_content().size() % sizeof(float)); in LogDumpGraphDef()
142 const int size = tensor.tensor_content().size() / sizeof(float); in LogDumpGraphDef()
144 toco::port::CopyToBuffer(tensor.tensor_content(), in LogDumpGraphDef()
Dimport_tensorflow.cc250 toco::port::CopyToBuffer(p.tensor_content(), in CopyFromContent()
263 toco::port::CopyToBuffer(p.tensor_content(), in CopyFromContent()
279 toco::port::CopyToBuffer(p.tensor_content(), in CopyFromContent()
291 toco::port::CopyToBuffer(p.tensor_content(), in CopyFromContent()
303 toco::port::CopyToBuffer(p.tensor_content(), in CopyFromContent()
315 std::vector<char> buf(p.tensor_content().size()); in CopyFromContent()
316 toco::port::CopyToBuffer(p.tensor_content(), buf.data()); in CopyFromContent()
317 for (int i = 0; i < p.tensor_content().size(); i++) { in CopyFromContent()
333 } else if (input_tensor.tensor_content().size() == in ImportTensorData()
355 input_tensor.tensor_content().size() / sizeof(T), ") nor ", in ImportTensorData()
/external/tensorflow/tensorflow/core/framework/
Dtensor_util.cc191 const int64 num_bytes = tensor->tensor_content().size(); in CompressTensorContent()
203 if (tensor->tensor_content()[prev_offset] != in CompressTensorContent()
204 tensor->tensor_content()[last_offset]) { in CompressTensorContent()
220 port::CopySubrangeToArray(tensor->tensor_content(), 0, in CompressTensorContent()
227 port::CopySubrangeToArray(tensor->tensor_content(), 0, in CompressTensorContent()
237 char c = tensor->tensor_content()[i]; in CompressTensorContent()
317 if (tensor->tensor_content().empty()) { in CompressTensorProtoInPlaceImpl()
Dtensor.proto36 bytes tensor_content = 4; field
Dtensor_util_test.cc561 EXPECT_FALSE(tensor_proto.tensor_content().empty()); in ConstantTailTest()
565 EXPECT_TRUE(tensor_proto.tensor_content().empty()); in ConstantTailTest()
Dtensor.cc867 if (!proto.tensor_content().empty()) { in FromProto()
868 const auto& content = proto.tensor_content(); in FromProto()
/external/tensorflow/tensorflow/lite/toco/tensorflow_graph_matching/
Dresolve_svdf.cc86 tensor.tensor_content().size() / sizeof(int), 0); in InferFilterRank()
87 port::CopyToBuffer(tensor.tensor_content(), in InferFilterRank()
197 allocated_content_flat_size += tensor.tensor_content().size(); in MaybeMergeConstNodes()
220 port::CopyToBuffer(tensor.tensor_content(), content_ptr); in MaybeMergeConstNodes()
221 content_ptr += tensor.tensor_content().size(); in MaybeMergeConstNodes()
Dresolve_svdf_test.cc189 node->attr().at("value").tensor().tensor_content(), in TEST_F()
/external/tensorflow/tensorflow/python/debug/lib/
Dgrpc_debug_server.py266 if value.tensor.tensor_content:
272 if value.tensor.tensor_content:
273 event.summary.value[0].tensor.tensor_content = b"".join(
274 chunk.tensor_content for chunk in chunks)
Ddebug_data.py127 if tensor_proto.tensor_content or tensor_proto.string_val or not num_elements:
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_rma_distributed.cc67 for (const auto& tensor_content_chunk : extra.tensor_content()) { in PopulateTensorFromExtra()
108 for (const auto& chunk : extra.tensor_content()) { in RecvFromPeer()
/external/tensorflow/tensorflow/core/protobuf/
Dtransport_options.proto7 repeated bytes tensor_content = 1; field
Dnamed_tensor.proto21 // compact form in tensor.tensor_content.
/external/tensorflow/tensorflow/core/grappler/costs/graph_properties_testdata/
Dlarge_function_graph.pbtxt76 tensor_content: "\001\000\000\000\001\000\000\000\030\000\000\000@\000\000\000"
131 tensor_content: "\200\000\000\000\340\000\000\000\340\000\000\000\003\000\000\000"
186 tensor_content: "\007\000\000\000\007\000\000\000\003\000\000\000\010\000\000\000"
/external/tensorflow/tensorflow/examples/tutorials/deepdream/
Ddeepdream.ipynb243tensor_content: &quot;<stripped 37632 bytes>&quot;\\n }\\n }\\n }\\n}\\nnode {\\n name: …
279 " size = len(tensor.tensor_content)\n",
281 " tensor.tensor_content = tf.compat.as_bytes(\"<stripped %d bytes>\"%size)\n",
675tensor_content: &quot;<stripped 900 bytes>&quot;\\n }\\n }\\n }\\n}\\nnode {\\n name: &q…
/external/tensorflow/tensorflow/python/framework/testdata/
Dmetrics_export_meta_graph.pb506 tensor_content: "\000\000\000\000\000\000\200?"
570 tensor_content: "ff\206\300\232\231\021A"
634 tensor_content: "\000\000\320@\000\000\000\000"
698 tensor_content: "\315\314L\300\000\000\200@"
1161 tensor_content: "\000\000\000\000\001\000\000\000"
/external/tensorflow/tensorflow/core/graph/
Dmkl_layout_pass.cc1132 const int* tensor_content = in CheckForTranspose() local
1133 reinterpret_cast<const int*>(proto->tensor_content().c_str()); in CheckForTranspose()
1135 proto->tensor_content().size() / type_size; in CheckForTranspose()
1137 std::vector<int> perm_value(tensor_content, in CheckForTranspose()
1138 tensor_content + tensor_content_size); in CheckForTranspose()
1143 const long* tensor_content = in CheckForTranspose() local
1144 reinterpret_cast<const long*>(proto->tensor_content().c_str()); in CheckForTranspose()
1146 proto->tensor_content().size() / type_size; in CheckForTranspose()
1148 std::vector<long> perm_value(tensor_content, in CheckForTranspose()
1149 tensor_content + tensor_content_size); in CheckForTranspose()
/external/tensorflow/tensorflow/python/framework/
Dtensor_util.py539 tensor_proto.tensor_content = nparray.tostring()
601 if tensor.tensor_content:
602 return (np.frombuffer(tensor.tensor_content,
/external/tensorflow/tensorflow/compiler/tests/
Dlstm_layer_inference.pbtxt23 tensor_content: "\000\010\000\000\000\020\000\000"
306 tensor_content: "\200\000\000\000\000\004\000\000"
533 tensor_content: "\200\000\000\000\001\000\000\000"
760 tensor_content: "\200\000\000\000\000\004\000\000"
987 tensor_content: "\200\000\000\000\001\000\000\000"
1214 tensor_content: "\200\000\000\000\000\004\000\000"
1441 tensor_content: "\200\000\000\000\001\000\000\000"
1668 tensor_content: "\200\000\000\000\000\004\000\000"
1895 tensor_content: "\200\000\000\000\001\000\000\000"
2122 tensor_content: "\200\000\000\000\000\004\000\000"
[all …]
/external/tensorflow/tensorflow/core/profiler/internal/testdata/
Dgraph.pbtxt430 tensor_content: "\003\000\000\000\003\000\000\000\003\000\000\000\006\000\000\000"
915 tensor_content: "\002\000\000\000\002\000\000\000\006\000\000\000\014\000\000\000"
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_remote_worker.cc145 for (const auto& chunk : extra.tensor_content()) { in RecvBufAsync()
Dgrpc_session.cc79 if (proto != nullptr && proto->tensor_content().empty() && in ReEncodeConsts()
/external/tensorflow/tensorflow/core/debug/
Ddebug_io_utils.cc202 const size_t total_length = tensor_proto.tensor_content().size(); in WrapTensorAsEvents()
219 ->set_tensor_content(tensor_proto.tensor_content().substr(pos, len)); in WrapTensorAsEvents()
/external/tensorflow/tensorflow/core/grappler/costs/
Dop_level_cost_estimator_test.cc337 const std::vector<int64> values, const bool tensor_content, in GetTensorProto() argument
361 if (tensor_content) { in GetTensorProto()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc800 if (!input_tensor.tensor_content().empty()) { in MaterializeConstantValuedNode()
1143 encoded_size = t->tensor_content().size(); in CreateNodeDef()

12