- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_SetAttrTensorShapeProto (0.42 sec)
-
tensorflow/c/c_api.cc
} else { shapes.emplace_back(ArraySlice<int64_t>( reinterpret_cast<const int64_t*>(dims[i]), num_dims[i])); } } desc->node_builder.Attr(attr_name, shapes); } void TF_SetAttrTensorShapeProto(TF_OperationDescription* desc, const char* attr_name, const void* proto, size_t proto_len, TF_Status* status) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
tensorflow::TensorShapeProto proto; tensorflow::PartialTensorShape(pts).AsProto(&proto); string bytes; proto.SerializeToString(&bytes); auto desc = init("shape"); TF_SetAttrTensorShapeProto(desc, "v", bytes.data(), bytes.length(), s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); auto oper = TF_FinishOperation(desc, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)