Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ASSERT_FALSE (0.09 sec)

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

      parallel_device.Execute(context.get(), handle_inputs, "ReadVariableOp",
                              TFE_OpGetAttrs(read_op.get()),
                              /*expected_max_outputs=*/1, status.get());
      ASSERT_FALSE(TF_GetCode(status.get()) == TF_OK);
      TF_SetStatus(status.get(), TF_OK, "");
    
      // Check that ops still run successfully on the device.
      parallel_device.Execute(context.get(), std::vector<ParallelTensor*>(),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      // Test not found errors in TF_Operation*() query functions.
      EXPECT_EQ(-1, TF_OperationOutputListLength(feed, "bogus", s));
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s));
    
      ASSERT_FALSE(GetAttrValue(feed, "missing", &attr_value, s));
      EXPECT_EQ(string("Operation 'feed' has no attr named 'missing'."),
                string(TF_Message(s)));
    
      // Make a constant oper with the scalar "3".
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top