Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_FunctionImportFunctionDef (0.21 sec)

  1. tensorflow/c/c_api_function_test.cc

      // Invalid protobuf data (protos cannot start with 4 bytes of zeros)
      char proto[] = {0x0, 0x0, 0x0, 0x0};
      func_ = TF_FunctionImportFunctionDef(proto, 4, s_);
      EXPECT_TRUE(func_ == nullptr);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Invalid FunctionDef given to TF_FunctionImportFunctionDef"),
                string(TF_Message(s_)));
    }
    
    TEST_F(CApiFunctionTest, Attribute) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

    // Returns:
    //  On success, a newly created TF_Function instance. It must be deleted by
    //  calling TF_DeleteFunction.
    //
    //  On failure, null.
    TF_CAPI_EXPORT extern TF_Function* TF_FunctionImportFunctionDef(
        const void* proto, size_t proto_len, TF_Status* status);
    
    // Sets function attribute named `attr_name` to value stored in `proto`.
    // If this attribute is already set to another value, it is overridden.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
Back to top