Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 456 for test_1 (0.11 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyClusteringPassTest : public testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 17:03:53 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/util/tensor_bundle/tensor_bundle.h"
    #include "tsl/platform/status.h"
    #include "tsl/platform/status_matchers.h"
    
    namespace tensorflow {
    namespace quantization {
    namespace {
    
    using ::tensorflow::test::AsTensor;
    using ::tensorflow::test::ExpectEqual;
    using ::testing::IsEmpty;
    using ::testing::Not;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. tensorflow/c/kernels_test.cc

    REGISTER_OP("StreamOp").Output("output1: float");
    
    TEST_F(DeviceKernelOpTest, TestStream) {
      auto my_compute_func = [](void* kernel, TF_OpKernelContext* ctx) {
        TF_Status* s = TF_NewStatus();
        SP_Stream stream = TF_GetStream(ctx, s);
        // Stream is always null if device is not a pluggable device. More test
        // cases will be added when pluggable device mechanism is supported.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-tuple.h.pump

    }  // namespace gtest_internal
    
    template <GTEST_$(n)_TYPENAMES_(T), GTEST_$(n)_TYPENAMES_(U)>
    inline bool operator==(const GTEST_$(n)_TUPLE_(T)& t,
                           const GTEST_$(n)_TUPLE_(U)& u) {
      return gtest_internal::SameSizeTuplePrefixComparator<
          tuple_size<GTEST_$(n)_TUPLE_(T) >::value,
          tuple_size<GTEST_$(n)_TUPLE_(U) >::value>::Eq(t, u);
    }
    
    template <GTEST_$(n)_TYPENAMES_(T), GTEST_$(n)_TYPENAMES_(U)>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental_test.cc

      TF_DeleteFunction(funcs[0]);
    }
    
    TEST_F(CApiExperimentalFunctionTest, EmptyGraphRemoveNonExistentFunction) {
      TF_GraphRemoveFunction(func_graph_, "wrong_name", s_);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Tried to remove non-existent function 'wrong_name'."),
                string(TF_Message(s_)));
    }
    
    TEST_F(CApiExperimentalFunctionTest, GraphRemoveNonExistentFunction) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    using ::testing::NotNull;
    using ::testing::SizeIs;
    
    using ConstantFoldingTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(ConstantFoldingTest, FoldLargeConstant) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

            def header1 = includeDir.createFile("test.h")
            includePaths << includeDir
    
            macros << macro("TEST", '"test.h"')
            macroFunctions << macroFunction("TEST1", "TEST")
            macros << macro("TEST2", "TEST1()")
            macros << macro("TEST3", "TEST2")
            macros << unresolvableMacro("IGNORE")
    
            expect:
            def result = resolve(include('TEST3'))
            result.complete
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    }
    
    // This value parameterized test allows us to test both TFRT
    // and non TFRT runtimes.
    // https://github.com/google/googletest/blob/dcc92d0ab6c4ce022162a23566d44f673251eee4/googletest/docs/advanced.md#value-parameterized-tests
    class CSavedModelAPITest : public ::testing::TestWithParam<bool> {};
    
    TEST_P(CSavedModelAPITest, LoadsSavedModelWithTags) {
      TF_Status* status = TF_NewStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_kernel_creator_test.cc

      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    
      std::unique_ptr<OpKernel> kernel_;
    };
    
    AttrValue BoolAttr(bool b) {
      AttrValue v;
      v.set_b(b);
      return v;
    }
    
    TEST_F(XlaKernelCreatorTest, OneFloatOneResourceArgument) {
      FunctionDef fdef = XTimesY();
      (*fdef.mutable_attr())["_XlaMustCompile"] = BoolAttr(true);
      Init({fdef});
      XlaKernelCreator xla_kernel_creator;
      auto callsite =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets_test.cc

      mlir::OpBuilder builder_;
    };
    
    TEST_F(XlaLegalizeTargetsTest, CreatesConversionTargets) {
      auto const_int = builder_.create<mlir::arith::ConstantIntOp>(
          builder_.getUnknownLoc(), /*value=*/10, builder_.getI32Type());
    
      ConversionTarget target =
          GetDefaultLegalConversionTargets(context_, /*legalize_chlo=*/false);
      EXPECT_TRUE(target.isLegal(const_int));
    }
    
    TEST_F(XlaLegalizeTargetsTest, AllowsCHLODialect) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top