Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for foo (0.12 sec)

  1. tensorflow/c/c_api_function_test.cc

      DefineFunction(func_name_, &func_);
    
      // Get non existent attribute
      TF_Buffer* attr_buf = TF_NewBuffer();
      TF_FunctionGetAttrValueProto(func_, "foo_attr", attr_buf, s_);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Function 'MyFunc' has no attr named 'foo_attr'."),
                string(TF_Message(s_)));
      TF_DeleteBuffer(attr_buf);
    
      // Set attr
      tensorflow::AttrValue attr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top