Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for test_1 (0.2 sec)

  1. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-param-test.h.pump

    class BaseTest : public ::testing::Test {
      // You can inherit all the usual members for a non-parameterized test
      // fixture here.
    };
    
    class DerivedTest : public BaseTest, public ::testing::WithParamInterface<int> {
      // The usual test fixture members go here too.
    };
    
    TEST_F(BaseTest, HasFoo) {
      // This is an ordinary non-parameterized test.
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    // This header implements typed tests and type-parameterized tests.
    
    // Typed (aka type-driven) tests repeat the same test for types in a
    // list.  You must know which types you want to test with when writing
    // typed tests. Here's how you do it:
    
    #if 0
    
    // First, define a fixture class template.  It should be parameterized
    // by a type.  Remember to derive it from testing::Test.
    template <typename T>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

    using ::testing::IsNull;
    using ::testing::Ne;
    using ::testing::NotNull;
    using ::testing::Test;
    
    class CreateI8F32UniformQuantizedTypeTest : public Test {
     protected:
      CreateI8F32UniformQuantizedTypeTest() : ctx_() {
        ctx_.loadDialect<quant::QuantizationDialect>();
      }
    
      MLIRContext ctx_;
    };
    
    TEST_F(CreateI8F32UniformQuantizedTypeTest, I8StorageTypeSucceeds) {
      const UniformQuantizedType quantized_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      EXPECT_TRUE(failed(TryCast<DotGeneralOp>(nullptr, /*name=*/"nullptr")));
    }
    
    TEST_F(AttrsAndConstraintsTest, I64ValueInI32RangeAreCastedCorrectly) {
      EXPECT_TRUE(succeeded(CastI64ToI32(llvm::minIntN(32))));
      EXPECT_TRUE(succeeded(CastI64ToI32(llvm::maxIntN(32))));
    }
    
    TEST_F(AttrsAndConstraintsTest, CastingFailsForI64ValueOutOfI32Range) {
      EXPECT_TRUE(failed(CastI64ToI32(llvm::minIntN(32) - 10)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

    #include "xla/stream_executor/stream_executor.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/protobuf/error_codes.pb.h"
    #include "tsl/platform/statusor.h"
    
    namespace stream_executor {
    namespace {
    
    /*** Registration tests ***/
    TEST(StreamExecutor, SuccessfulRegistration) {
      auto plugin_init = [](SE_PlatformRegistrationParams* const params,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

          return %0 : tensor<1x3xf32>
        }
      }
    )mlir";
    
    TEST_F(IsOpQuantizableStableHloTest, ConstantOpQuantizable) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleConstantAdd);
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    using ::testing::ElementsAre;
    using ::testing::HasSubstr;
    using ::testing::Key;
    using ::testing::SizeIs;
    using ::tsl::testing::StatusIs;
    
    class CalibrationStatisticsSaverTest : public OpsTestBase {};
    
    TEST_F(CalibrationStatisticsSaverTest, MissingOutputPath) {
      std::vector<std::string> ids{"1"};
      std::vector<int32_t> calibration_methods{
          CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/c/while_loop_test.cc

    //               "output(s)");
    // }
    
    // TODO(skyewm): test bad body output shape
    
    TEST_F(CApiWhileLoopTest, NullName) {
      Init(1);
      CreateCondGraph();
      params_->body_outputs[0] = params_->body_inputs[0];
      params_->name = nullptr;
      ExpectError(TF_INVALID_ARGUMENT, "TF_WhileParams `name` field is null");
    }
    
    TEST_F(CApiWhileLoopTest, WrongGraph) {
      Init(1);
      CreateCondGraph();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      ASSERT_FALSE(xla_call_module_ops.empty());
    
      // Test that `GetQuantizationMethod` returns a valid `Method` corresponding to
      // `"no_quantization {}"`.
      const absl::StatusOr<Method> method =
          GetQuantizationMethod(*xla_call_module_ops.begin());
      ASSERT_THAT(method, IsOk());
      EXPECT_TRUE(method->has_no_quantization());
    }
    
    TEST_F(LiftAsFunctionCallTest,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/device_executable_persistor_test.cc

    };
    
    // Using a mock to make testing different branches and triggering errors easier.
    // Currently the `XlaDeviceCompilerClient`'s load/serialize functions don't work
    // with the current test setup.
    // TODO(b/255826209): Look into using a real object for most tests.
    class MockXlaCompilerClient : public XlaDeviceCompilerClient {
     public:
      MockXlaCompilerClient() : XlaDeviceCompilerClient(nullptr) {}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top