Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for getCode (0.19 sec)

  1. tensorflow/c/eager/c_api_remote_test_util.cc

                                  status);
        CHECK_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, h0_task0, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(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)
  2. tensorflow/c/eager/c_api_remote_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      auto* h1_task1 =
          TFE_TensorHandleCopyToDevice(h1_task0, ctx, remote_device_name, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TFE_Op* matmul = MatMulOp(ctx, h0_task1, h1_task1);
      TFE_OpSetDevice(matmul, remote_device_name, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

                             status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_debug_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* h = TestScalarTensorHandle(ctx, 1.0f);
      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/custom_device_testutil.cc

      if (TF_GetCode(s) != TF_OK) return;
      int num_inputs = TFE_OpGetFlatInputCount(original_op, s);
      if (TF_GetCode(s) != TF_OK) return;
      for (int j = 0; j < num_inputs; ++j) {
        TFE_TensorHandle* input = TFE_OpGetFlatInput(original_op, j, s);
        if (TF_GetCode(s) != TF_OK) return;
        const char* input_device = TFE_TensorHandleDeviceName(input, s);
        if (TF_GetCode(s) != TF_OK) return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_test.c

      TF_Status* status = TF_NewStatus();
      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
      }
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jan 15 17:51:26 GMT 2020
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrInt(op.get(), "N", num_replicas);
      for (int i = 0; i < num_replicas; ++i) {
        TFE_OpAddInput(op.get(), components[i], status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
      }
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/dlpack_test.cc

          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
          static_cast<DLManagedTensor*>(TFE_HandleToDLPack(handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const DLTensor* dltensor_out = &dlm_out->dl_tensor;
      EXPECT_EQ(dltensor_out->device.device_type, dltensor_in->device.device_type);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  9. tensorflow/c/env_test.cc

    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/platform/mutex.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/platform/types.h"
    
    #define ASSERT_TF_OK(x) ASSERT_EQ(TF_OK, TF_GetCode(x))
    
    TEST(TestEnv, TestDirHandling) {
      TF_StringStream* tempdirs = TF_GetLocalTempDirectories();
      const char* tempdir;
      bool found = false;
      while (TF_StringStreamNext(tempdirs, &tempdir)) {
        found = true;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_unified_experimental_eager.cc

    TF_ExecutionContext* TF_NewEagerExecutionContext(TFE_ContextOptions* options,
                                                     TF_Status* s) {
      TFE_Context* c_ctx = TFE_NewContext(options, s);
      if (TF_GetCode(s) != TF_OK) {
        return nullptr;
      }
      return wrap(static_cast<AbstractContext*>(unwrap(c_ctx)));
    }
    
    TF_AbstractTensor* TF_CreateAbstractTensorFromEagerTensor(TFE_TensorHandle* t,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 25 04:40:46 GMT 2020
    - 3.2K bytes
    - Viewed (0)
Back to top