- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TensorShapeProto (0.71 sec)
-
tensorflow/c/c_api.h
// Sets `value` to the binary-serialized TensorShapeProto of the value of // `attr_name` attribute of `oper`. TF_CAPI_EXPORT extern void TF_OperationGetAttrTensorShapeProto( TF_Operation* oper, const char* attr_name, TF_Buffer* value, TF_Status* status); // Fills in `values` with binary-serialized TensorShapeProto values of the
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
" bytes) is too large to be parsed by the protocol buffer library"); return; } TensorShapeProto shape; if (shape.ParseFromArray(proto, static_cast<int>(proto_len))) { desc->node_builder.Attr(attr_name, shape); status->status = absl::OkStatus(); } else { status->status = InvalidArgument("Unparseable TensorShapeProto"); } } void TF_SetAttrTensorShapeProtoList(TF_OperationDescription* desc,
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Tue May 13 06:30:43 UTC 2025 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
for (int j = 0; j < values_ndims[i]; ++j) { EXPECT_EQ(list[i][j], values[i][j]) << "(" << i << ", " << j << ")"; } } } TEST_F(CApiAttributesTest, TensorShapeProto) { const int64_t pts[] = {2, 4, -1, 8}; tensorflow::TensorShapeProto proto; tensorflow::PartialTensorShape(pts).AsProto(&proto); string bytes; proto.SerializeToString(&bytes); auto desc = init("shape");
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Dec 27 12:18:10 UTC 2024 - 97K bytes - Viewed (0)