Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Truong (0.29 sec)

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

            context.get(), components, device_name, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT)
            << TF_Message(status.get());
      }
    
      {
        // Try to extract the wrong number of components from a parallel tensor
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
        TensorHandlePtr combined_value = CreatePerDeviceValues(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  2. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(2, num_dims);
      EXPECT_EQ(2, returned_dims[0]);
      EXPECT_EQ(3, returned_dims[1]);
    
      // Try to fetch a shape with the wrong num_dims
      TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, 5, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Try to set an invalid shape (cannot change 2x3 to a 2x5).
      dims[1] = 5;
    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)
  3. tensorflow/c/c_api_experimental_test.cc

      TF_DeleteFunction(funcs[0]);
    }
    
    TEST_F(CApiExperimentalFunctionTest, EmptyGraphRemoveNonExistentFunction) {
      TF_GraphRemoveFunction(func_graph_, "wrong_name", s_);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Tried to remove non-existent function 'wrong_name'."),
                string(TF_Message(s_)));
    }
    
    TEST_F(CApiExperimentalFunctionTest, GraphRemoveNonExistentFunction) {
      TF_Function* funcs[1];
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
Back to top