Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for TEST_F (0.15 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf_test.cc

        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(FunctionClusterTensorflowDialectTest, ClustersTfReplicatedBridge) {
      CellReader<int64_t> compilation_status(kCompilationStreamz);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import_test.cc

    namespace mlir::quant::stablehlo {
    namespace {
    
    using ::testing::IsEmpty;
    using ::testing::Pair;
    using ::testing::UnorderedElementsAre;
    
    using UpdateFunctionAliasesTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(UpdateFunctionAliasesTest, NoAliasesReturnsEmptyMap) {
      // MLIR @main function corresponds to the TF function "main_original".
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 03:47:17 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/debug/debug_test.cc

        return tsl::io::JoinPath(
            getenv("TEST_UNDECLARED_OUTPUTS_DIR"),
            absl::StrCat(test_info->test_suite_name(), ".", test_info->name()));
      }
    };
    
    TEST_F(InitPassManagerTest, CrashReproducer) {
      converter::DebugOptions debug_options;
      *debug_options.mutable_ir_dump_dir() = path_;
    
      mlir::PassManager pm(&context_);
      InitPassManager(pm, debug_options);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/tests/auto_clustering_test.cc

        return AutoClusteringTest::RunAutoClusteringTestWithGzippedPbtxt(
            absl::StrCat(file_name_without_extension, ".pbtxt.gz"),
            absl::StrCat(file_name_without_extension, ".golden_summary"));
      }
    };
    
    TEST_F(AutoClusteringTestImpl, KerasImagenetMain) {
      // Generated from
      //
      //  TARGET_PATH=tensorflow_models/official/legacy/image_classification       \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 13 20:13:03 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

      std::unique_ptr<mlir::Builder> builder_;
    };
    
    TEST_F(PerceptionUtilsTest, VerifySignatureValid) {
      mlir::TFL::ConvertMaxUnpoolingFunc convert(fused_max_unpooling_func_,
                                                 func_attr_);
    
      EXPECT_FALSE(failed(convert.VerifySignature()));
    }
    
    TEST_F(PerceptionUtilsTest, VerifySignatureInvalid) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

      }
    
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(VerifyNoOutsideCompilationMarkersPassTest, PassesValidOps) {
      static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(VerifyTfxlaLegalizationTest, RecordsStreamzFailedVerification) {
      // Using a string constant here instead of testdata to make this compatible
      // with open source.
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/cc/saved_model/bundle_v2_test.cc

          // And should be able to load it from the tensor_bundle.
          Tensor value;
          TF_ASSERT_OK(
              bundle->variable_reader()->Lookup(std::get<2>(restored_var), &value));
        }
      }
    };
    
    TEST_F(BundleV2Test, LoadsVarsAndArithmeticObjectGraph) {
      const std::string export_dir = io::JoinPath(
          testing::TensorFlowSrcRoot(), kTestData, "VarsAndArithmeticObjectGraph");
    
      SavedModelV2Bundle bundle;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

    };
    
    func::FuncOp GetMainFuncOp(ModuleOp module_op) {
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        if (func_op.getSymName() == "main") {
          return func_op;
        }
      }
      return {};
    }
    
    TEST_F(ConvertAssetArgsTest, ConvertsSingleAssetArg) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top