- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_SetAttrFloat (0.08 sec)
-
tensorflow/c/c_api.h
const char* attr_name, const int64_t* values, int num_values); TF_CAPI_EXPORT extern void TF_SetAttrFloat(TF_OperationDescription* desc, const char* attr_name, float value); TF_CAPI_EXPORT extern void TF_SetAttrFloatList(TF_OperationDescription* desc,
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.cc
desc->node_builder.Attr( attr_name, ArraySlice<const int64_t>( reinterpret_cast<const int64_t*>(values), num_values)); } void TF_SetAttrFloat(TF_OperationDescription* desc, const char* attr_name, float value) { desc->node_builder.Attr(attr_name, value); } void TF_SetAttrFloatList(TF_OperationDescription* desc, const char* attr_name,
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
EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TRUE(std::equal(std::begin(list), std::end(list), std::begin(values))); } TEST_F(CApiAttributesTest, Float) { auto desc = init("float"); TF_SetAttrFloat(desc, "v", 2.718); auto oper = TF_FinishOperation(desc, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TF_META("v", -1, TF_ATTR_FLOAT, -1); float value;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)