- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 385 for assertGet (0.27 sec)
-
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
StreamExecutor* executor = GetExecutor(0); const DeviceDescription& description = executor->GetDeviceDescription(); ASSERT_EQ(description.name(), "TestName"); ASSERT_EQ(description.device_vendor(), "TestVendor"); ASSERT_EQ(description.pci_bus_id(), "TestPCIBusId"); ASSERT_EQ(description.numa_node(), 123); ASSERT_EQ(description.memory_bandwidth(), 54); } TEST_F(StreamExecutorTest, DeviceDescriptionNumaNodeNotSet) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
status_ = StatusFromTF_Status(status.get()); ASSERT_EQ(errors::OK, status_.code()) << status_.message(); { AbstractContext* ctx_raw = nullptr; status_ = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(errors::OK, status_.code()) << status_.message(); immediate_execution_ctx_.reset(ctx_raw); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/value_test.cc
ASSERT_EQ(alloc_count, 1); ASSERT_EQ(capsule.capsule(), ptr_value); test_moved = std::move(capsule); ASSERT_EQ(capsule.type(), TaggedValue::NONE); // NOLINT test_copy = test_moved; ASSERT_EQ(test_moved.capsule(), ptr_value); ASSERT_EQ(test_copy.capsule(), ptr_value); } ASSERT_EQ(alloc_count, 1); test_moved = TaggedValue::None();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 01 11:18:25 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test_util.cc
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); TFE_OpAddInput(matmul, has_packed_input ? packed_handle : h1_task2, status); ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 11 22:56:03 UTC 2020 - 9.1K bytes - Viewed (0) -
tensorflow/c/kernels/bitcast_op_test.cc
gtl::InlinedVector<TensorValue, 4> inputs; inputs.emplace_back(input_tensor); params.inputs = inputs; OpKernelContext ctx(¶ms); kernel->Compute(&ctx); ASSERT_EQ(expected_code, ctx.status().code()); if (expected_code == error::OK) { ASSERT_EQ(expected_shape, ctx.mutable_output(0)->shape()) << ctx.mutable_output(0)->shape().DebugString(); } } TEST(BitcastOpTest, TestUpcast) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 18 15:10:51 UTC 2022 - 5.5K bytes - Viewed (0) -
tensorflow/c/tf_status_helper_test.cc
Set_TF_Status_from_Status(s, cc_status); ASSERT_EQ(TSL_INVALID_ARGUMENT, TSL_GetCode(s)); ASSERT_EQ(std::string("some error"), TSL_Message(s)); absl::Status another_cc_status(StatusFromTF_Status(s)); ASSERT_FALSE(another_cc_status.ok()); ASSERT_EQ(std::string("some error"), another_cc_status.message()); ASSERT_EQ(error::INVALID_ARGUMENT, another_cc_status.code());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
ASSERT_TF_OK(status_); ASSERT_EQ(bucket, "bucket"); ASSERT_EQ(object, "path/to/object"); ParseGCSPath("gs://bucket/", true, &bucket, &object, status_); ASSERT_TF_OK(status_); ASSERT_EQ(bucket, "bucket"); ParseGCSPath("bucket/path/to/object", false, &bucket, &object, status_); ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT); // bucket name must end with "/"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 31 12:04:23 UTC 2020 - 24.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_type, nullptr); ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, ""); int device_id = TFE_TensorHandleDeviceID(h, status.get()); ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_id, -1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_name, nullptr); ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, ""); int num_dims = TFE_TensorHandleNumDims(h, status.get()); ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(num_dims, -1); ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
ASSERT_EQ(1, grads.size()); ASSERT_EQ(func_name_, grads[0].first); ASSERT_EQ("MyGrad", grads[0].second); // These calls must be noops TF_GraphCopyFunction(host_graph_, func_, grad_func, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_GraphCopyFunction(host_graph_, func_, nullptr, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Delete the gradient func.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)