Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_OperationGetNumAttrs (0.31 sec)

  1. tensorflow/c/c_api.h

        TF_Operation* oper, const char* attr_name, TF_Buffer* output_attr_value,
        TF_Status* status);
    
    // Get the number of attributes the operation has.
    TF_CAPI_EXPORT extern int TF_OperationGetNumAttrs(TF_Operation* oper);
    
    // Get the length of the name of the ith attribute, or -1 if there is not an
    // ith attribute.
    TF_CAPI_EXPORT extern int TF_OperationGetAttrNameLength(TF_Operation* oper,
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. 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 Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top