- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_OperationGetAttrBool (0.21 sec)
-
tensorflow/c/c_api.cc
} DEFINE_GETATTR(TF_OperationGetAttrInt, int64_t, int64_t, i); DEFINE_GETATTR(TF_OperationGetAttrFloat, float, float, f); DEFINE_GETATTR(TF_OperationGetAttrBool, unsigned char, bool, b); DEFINE_GETATTR(TF_OperationGetAttrType, TF_DataType, DataType, type); #undef DEFINE_GETATTR void TF_OperationGetAttrShape(TF_Operation* oper, 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
auto oper = TF_FinishOperation(desc, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TF_META("v", -1, TF_ATTR_BOOL, -1); unsigned char value; TF_OperationGetAttrBool(oper, "v", &value, s_); EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_EQ(1, value); } TEST_F(CApiAttributesTest, BoolList) { const unsigned char list[] = {0, 1, 1, 0, 0, 1, 1};
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)