- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SerializeToString (0.33 sec)
-
tensorflow/c/c_api_test.cc
const int64_t pts1[] = {2, 4, -1, 8}; tensorflow::PartialTensorShape(pts1).AsProto(&proto); proto.SerializeToString(&bytes1); const int64_t pts2[] = {1, 3, 5, 7}; tensorflow::PartialTensorShape(pts2).AsProto(&proto); proto.SerializeToString(&bytes2); std::unique_ptr<const void*[]> list_ptrs; std::unique_ptr<size_t[]> list_lens;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
cell->cell.Add(value); } void TFE_MonitoringSamplerCellValue(TFE_MonitoringSamplerCell* cell, TF_Buffer* buf) { string content; cell->cell.value().SerializeToString(&content); void* data = tensorflow::port::Malloc(content.length()); content.copy(static_cast<char*>(data), content.length(), 0); buf->data = data; buf->length = content.length();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/c/c_api.cc
out_shape_and_type->set_dtype(p.dtype); *out_shape_and_type->mutable_type() = p.type; } } string str_data; handle_data.SerializeToString(&str_data); TF_Buffer* result = TF_NewBufferFromString(str_data.c_str(), str_data.size()); return result; } void TF_SetHandleShapeAndType(TF_Graph* graph, TF_Output output,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0)