- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for assertGet (0.2 sec)
-
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/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/eager/unified_api_test.cc
ASSERT_EQ(errors::OK, s.code()) << s.message(); s = dyn_cast<tracing::TracingContext>(ctx.get())->AddParameter( DT_FLOAT, shape, &x_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); x.reset(x_raw); } PartialTensorShape shape; Status s = x->Shape(&shape); ASSERT_EQ(errors::OK, s.code()) << s.message();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/grad_test_helper.cc
auto s = GetValue(t, &analytical_tensor); ASSERT_EQ(errors::OK, s.code()) << s.message(); int64_t num_elem_analytical = 1; auto num_dims_analytical = TF_NumDims(analytical_tensor); ASSERT_EQ(dims.size(), num_dims_analytical); for (int j = 0; j < num_dims_analytical; j++) { auto dim_analytical = TF_Dim(analytical_tensor, j); ASSERT_EQ(dims[j], dim_analytical); num_elem_analytical *= dim_analytical;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/array_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 - 5K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/iostream_test.cc
std::stringstream stream; stream << x; ASSERT_EQ(stream.str(), "42"); } TEST(OStreamTest, TestFloat32) { Float32 x(0.375); // Exactly representable as a float. std::stringstream stream; stream << x; ASSERT_EQ(stream.str(), "0.375"); } TEST(OStreamTest, TestString) { String s("foo"); std::stringstream stream; stream << s; ASSERT_EQ(stream.str(), "foo"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 09:47:46 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
(*module_ref)->setAttr("tf.devices", device_dict); mlir::TF::RuntimeDevices devices; EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices))); ASSERT_EQ(devices.NumDevices(), 1); ASSERT_EQ(devices.device_names().size(), 1); ASSERT_EQ(DeviceNameUtils::ParsedNameToString(devices.device_names()[0]), "/job:worker/replica:0/task:0/device:CPU:0"); } TEST(DeviceUtilTest, GetGpuDeviceMetadata) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerExpectation.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.server interface ServerExpectation { void assertMet()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 711 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ForbidOne.groovy
*/ package org.gradle.test.fixtures.server import groovy.transform.CompileStatic @CompileStatic abstract class ForbidOne extends OneRequestServerExpectation { void assertMet() { if (run) { throw new AssertionError(notMetMessage as Object) } } abstract String getNotMetMessage()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 938 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ExpectOne.groovy
*/ package org.gradle.test.fixtures.server import groovy.transform.CompileStatic @CompileStatic abstract class ExpectOne extends OneRequestServerExpectation { @Override void assertMet() { if (!run) { throw new AssertionError(notMetMessage as Object) } } abstract String getNotMetMessage()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 953 bytes - Viewed (0)