Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TFE_ContextAddFunctionDef (0.42 sec)

  1. tensorflow/c/eager/c_api_distributed_test.cc

      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      // Register and run a function which returns the sum of 3 variables.
      const string function_def = AddVariablesFunction();
      TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
                                status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      TFE_Op* func = TFE_NewOp(ctx, "AddVariablesFunction", status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_remote_test_util.cc

      }
    
      TFE_Op* matmul = nullptr;
      if (func) {
        const string matmul_device = remote_func_outputs ? task2_name : "";
        string function_def = MatMulFunction(matmul_device);
        TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
                                  status);
        CHECK_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      EXPECT_EQ(TF_UNAVAILABLE, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteOp(comm_op);
    
      const string& fdef1 = FunctionWithErrorOp("TestNonCommUnavailable");
      TFE_ContextAddFunctionDef(ctx, fdef1.data(), fdef1.size(), status);
      TFE_Op* fn1 = TFE_NewOp(ctx, "FunctionWithTestNonCommUnavailable", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api.h

    // Add a function (serialized FunctionDef protocol buffer) to ctx so
    // that it can be invoked using TFE_Execute.
    TF_CAPI_EXPORT extern void TFE_ContextAddFunctionDef(
        TFE_Context* ctx, const char* serialized_function_def, size_t size,
        TF_Status* status);
    
    // Adds a function (created from TF_GraphToFunction or
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api.cc

              unwrapped_ctx, tensorflow::unwrap(h), device_name, &status->status);
    
      if (status->status.ok()) {
        return tensorflow::wrap(result);
      }
      return nullptr;
    }
    
    void TFE_ContextAddFunctionDef(TFE_Context* ctx,
                                   const char* serialized_function_def, size_t size,
                                   TF_Status* status) {
      tensorflow::FunctionDef function_def;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top