Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FloatTensorHandle (0.15 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      // Create a tensor on the first parallel device
      TensorHandlePtr value_one(FloatTensorHandle(1., status.get()));
      TensorHandlePtr value_two(FloatTensorHandle(2., status.get()));
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      std::array<TFE_TensorHandle*, 2> components{value_one.get(), value_two.get()};
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 06 23:56:17 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      const std::vector<int64_t>* shape;
      TF_ASSERT_OK(unknown_length_vector->Shape(&shape));
      EXPECT_THAT(*shape, ElementsAre(-1));
    
      TensorHandlePtr scalar = FloatTensorHandle(2., status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      two_vector = VectorFloatTensorHandle({3., 4.}, status.get());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top