- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_OperationGetNumAttrs (0.09 sec)
-
tensorflow/c/c_api.cc
const auto* attr = GetAttrValue(oper, attr_name, status); if (!status->status.ok()) return; status->status = MessageToBuffer(*attr, output_attr_value); } int TF_OperationGetNumAttrs(TF_Operation* oper) { return oper->node.attrs().size(); } int TF_OperationGetAttrNameLength(TF_Operation* oper, int i) { auto attrs = oper->node.attrs(); int count = 0;
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_STRING, 5); ASSERT_EQ(1, TF_OperationGetNumAttrs(oper)); ASSERT_EQ(1, TF_OperationGetAttrNameLength(oper, 0)); std::unique_ptr<char[]> value(new char[1]); TF_OperationGetAttrName(oper, 0, value.get(), s_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)