- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_SetAttrString (0.1 sec)
-
tensorflow/c/c_api_test.cc
EXPECT_EQ(expected_total_size, m.total_size); \ } while (0) TEST_F(CApiAttributesTest, String) { auto desc = init("string"); TF_SetAttrString(desc, "v", "bunny", 5); auto oper = TF_FinishOperation(desc, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TF_META("v", -1, TF_ATTR_STRING, 5);
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/c_api.h
// inferred from an input and doesn't have a default value you wish to // keep. // `value` must point to a string of length `length` bytes. TF_CAPI_EXPORT extern void TF_SetAttrString(TF_OperationDescription* desc, const char* attr_name, const void* value, size_t length);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
TF_Operation** op) { TF_OperationDescription* desc = TF_NewOperation(graph, "Placeholder", name); TF_SetAttrType(desc, "dtype", TF_INT32); TF_SetAttrString(desc, attr_name, attr_value, strlen(attr_value)); *op = TF_FinishOperation(desc, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); ASSERT_NE(*op, nullptr); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)