Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for backends (0.17 sec)

  1. tensorflow/c/eager/c_api_test.cc

        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
        ASSERT_TRUE(absl::StrContains(device_name, "GPU:0")) << device_name;
    
        // .backing_device of shape is CPU since the tensor is backed by CPU
        backing_device_name =
            TFE_TensorHandleBackingDeviceName(retvals[0], status.get());
        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  2. tensorflow/c/c_api_test.cc

    }
    
    void NoOpDeallocator(void* data, size_t, void*) {}
    
    TEST(CAPI, MalformedTensor) {
      // See https://github.com/tensorflow/tensorflow/issues/7394
      // num_dims = 0 implies a scalar, so should be backed by at least 4 bytes of
      // data.
      TF_Tensor* t =
          TF_NewTensor(TF_FLOAT, nullptr, 0, nullptr, 0, &NoOpDeallocator, nullptr);
      ASSERT_TRUE(t == nullptr);
    }
    
    TEST(CAPI, AllocateTensor) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top