Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetAttrValue (0.05 sec)

  1. tensorflow/c/c_api.cc

      return static_cast<TF_Operation*>(static_cast<void*>(node));
    }
    
    string OutputName(const TF_Output& output) {
      return StrCat(output.oper->node.name(), ":", output.index);
    }
    
    const tensorflow::AttrValue* GetAttrValue(TF_Operation* oper,
                                              const char* attr_name,
                                              TF_Status* status) {
      const tensorflow::AttrValue* attr = oper->node.attrs().Find(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)
  2. tensorflow/c/c_api_test.cc

      tensorflow::AttrValue attr_value;
      ASSERT_TRUE(GetAttrValue(feed, "dtype", &attr_value, s)) << TF_Message(s);
      EXPECT_EQ(attr_value.type(), tensorflow::DT_INT32);
    
      // Test not found errors in TF_Operation*() query functions.
      EXPECT_EQ(-1, TF_OperationOutputListLength(feed, "bogus", s));
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s));
    
      ASSERT_FALSE(GetAttrValue(feed, "missing", &attr_value, s));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top