Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_OperationGetNumAttrs (7.17 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,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  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_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. 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;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top