- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_SetAttrShapeList (0.07 sec)
-
tensorflow/c/c_api.cc
if (num_dims >= 0) { shape = PartialTensorShape(absl::Span<const int64_t>( reinterpret_cast<const int64_t*>(dims), num_dims)); } desc->node_builder.Attr(attr_name, shape); } void TF_SetAttrShapeList(TF_OperationDescription* desc, const char* attr_name, const int64_t* const* dims, const int* num_dims, int num_shapes) { std::vector<PartialTensorShape> shapes;
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
const size_t list_size = TF_ARRAYSIZE(list); const int ndims[] = {TF_ARRAYSIZE(shape_1), TF_ARRAYSIZE(shape_2)}; const int total_ndims = 5; // ndims[0] + ndims[1] auto desc = init("list(shape)"); TF_SetAttrShapeList(desc, "v", list, ndims, list_size); auto oper = TF_FinishOperation(desc, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TF_META("v", list_size, TF_ATTR_SHAPE, total_ndims);
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Dec 27 12:18:10 UTC 2024 - 97K bytes - Viewed (0)