Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for TFE_Execute (0.23 sec)

  1. tensorflow/c/eager/custom_device_test.cc

      int num_retvals = 1;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_DeleteTensorHandle(retval);
    
      // Custom device: inputs in same custom device works.
      matmul.reset(MatMulOp(context.get(), hcustom0.get(), hcustom0.get()));
      num_retvals = 1;
      executed = false;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

          TFE_TensorHandle* dummy = nullptr;
          TFE_Execute(add_op_dummy, &dummy, &num_retvals, status);
          ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
          TFE_DeleteTensorHandle(dummy);
          TFE_DeleteOp(add_op_dummy);
        }
      }
      TFE_TensorHandle* retval = nullptr;
      TFE_Execute(add_op, &retval, &num_retvals, status);
      EXPECT_EQ(1, num_retvals);
    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)
  3. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

    #include "tensorflow/c/c_api_experimental.h"
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    #include "tensorflow/core/platform/test.h"
    
    // NOTE(allenl): These tests currently go through TFE_Execute and so are
    // integration testing rather than purely testing the parallel device. They
    // correspond fairly well to the implementation, but testing the C++ directly is
    // another option.
    
    namespace tensorflow {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.h

    // is done.
    // TODO(agarwal): change num_retvals to int from int*.
    TF_CAPI_EXPORT extern void TFE_Execute(TFE_Op* op, TFE_TensorHandle** retvals,
                                           int* num_retvals, TF_Status* status);
    
    // 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(
    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_cluster_test.cc

      TFE_OpSetDevice(matmul, remote_device_name, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TFE_TensorHandle* retvals[1];
      int num_retvals = 1;
      TFE_Execute(matmul, &retvals[0], &num_retvals, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      auto* retval_task0 =
          TFE_TensorHandleCopyToDevice(retvals[0], ctx, local_device_name, status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      //
      // Attributes are forwarded to executed operations unmodified.
      //
      // The returned optional has a value if and only if `status` evaluates to
      // TF_OK. Bad statuses are forwarded from underlying `TFE_Execute` calls, or
      // if sanity checks on dtypes/metadata fail.
      absl::optional<std::vector<std::unique_ptr<ParallelTensor>>> Execute(
          TFE_Context* context, const std::vector<ParallelTensor*>& inputs,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_distributed_test.cc

      if (remote) {
        TFE_OpSetDevice(func, task1_name, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      }
    
      TFE_TensorHandle* retvals[1] = {nullptr};
      int num_retvals = 1;
      TFE_Execute(func, &retvals[0], &num_retvals, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      ASSERT_EQ(1, num_retvals);
      TFE_DeleteOp(func);
      TFE_DeleteTensorHandle(packed_handle);
    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)
  8. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_OpAddInput(op, h, status);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
    
        std::vector<TFE_TensorHandle*> result;
        result.push_back(nullptr);
        int num_retvals = 1;
        TFE_Execute(op, result.data(), &num_retvals, status);
        TFE_DeleteOp(op);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        ASSERT_EQ(num_retvals, 1);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_test.cc

    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    #include "tensorflow/core/platform/test.h"
    
    // NOTE(allenl): These tests currently go through TFE_Execute and so are
    // integration testing rather than purely testing the parallel device. They
    // correspond fairly well to the implementation, but testing the C++ directly is
    // another option.
    
    namespace tensorflow {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  10. tensorflow/c/eager/c_api_test_util.cc

      if (!device_name.empty()) {
        TFE_OpSetDevice(op, device_name.c_str(), status);
      }
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TFE_Execute(op, &var_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_DeleteOp(op);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      CHECK_EQ(1, num_retvals);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top