- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 385 for assertGet (0.49 sec)
-
tensorflow/c/experimental/gradients/custom_gradient_test.cc
Status s = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); ctx.reset(ctx_raw); } AbstractTensorHandlePtr x; { AbstractTensorHandle* x_raw = nullptr; Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); x.reset(x_raw); } // Pseudo-code:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 4.8K 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) -
src/cmd/compile/internal/reflectdata/helpers.go
return true } return false } // assertOp asserts that n is an op. func assertOp(n ir.Node, op ir.Op) { base.AssertfAt(n.Op() == op, n.Pos(), "want %v, have %v", op, n) } // assertOp2 asserts that n is an op1 or op2. func assertOp2(n ir.Node, op1, op2 ir.Op) { base.AssertfAt(n.Op() == op1 || n.Op() == op2, n.Pos(), "want %v or %v, have %v", op1, op2, n) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/tensor_test.cc
BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(tensorflow::errors::OK, s.code()) << s.message(); ctx.reset(ctx_raw); } // Construct a scalar. impl::TaggedValueTensor x; { AbstractTensorHandle* x_raw = nullptr; Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 2.0f, &x_raw); ASSERT_EQ(tensorflow::errors::OK, s.code()) << s.message(); x.reset(x_raw, false); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_debug_test.cc
TFE_TensorHandle* h = TestScalarTensorHandle(ctx, 1.0f); TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info)); TFE_DeleteTensorDebugInfo(debug_info); TFE_DeleteTensorHandle(h); TFE_DeleteContext(ctx); TF_DeleteStatus(status); } TEST(CApiDebug, 2DCPU) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 06 22:10:09 UTC 2020 - 2.3K bytes - Viewed (0) -
tensorflow/cc/framework/while_gradients_test.cc
&outputs_)); } void CreateBackprop() { TF_ASSERT_OK( AddSymbolicGradients(scope_, outputs_, inputs_, &grad_outputs_)); ASSERT_EQ(grad_outputs_.size(), inputs_.size()); } template <typename T> void Run(const std::vector<Input::Initializer>& input_values, const std::vector<T>& expected_grad_values) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 27 20:32:17 UTC 2017 - 7.7K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h
} }; // This specialization is used when the first argument to ASSERT_EQ() // is a null pointer literal, like NULL, false, or 0. template <> class EqHelper<true> { public: // We define two overloaded versions of Compare(). The first // version will be picked when the second argument to ASSERT_EQ() is // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or // EXPECT_EQ(false, a_bool).
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 86.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h
} }; // This specialization is used when the first argument to ASSERT_EQ() // is a null pointer literal, like NULL, false, or 0. template <> class EqHelper<true> { public: // We define two overloaded versions of Compare(). The first // version will be picked when the second argument to ASSERT_EQ() is // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or // EXPECT_EQ(false, a_bool).
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 86.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py
} repr_ds = data_gen() self.assertIsNone(repr_dataset.get_num_samples(repr_ds)) # Make sure that the __next__() is never called during the # get_num_samples call. self.assertLen(list(repr_ds), num_samples) def test_get_num_samples_returns_none_when_len_raises_error(self): class LenRaisingError: """A test-only class that raises an error when len() is called.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 07:35:19 UTC 2024 - 11.6K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents/test_main.cpp
#include "gtest/gtest.h" #include "${generatedId}/header.h" using namespace testing; <% if (hasTests) { out.println """ TEST(GeneratedTests, test_lib) { ASSERT_EQ(0, function_${generatedId}()); }""" } %> int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 316 bytes - Viewed (0)