Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for TEST_F (0.26 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor_test.cc

      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(TensorflowDialectToExecutorTest, ConvertsToExecutor) {
      CellReader<int64_t> compilation_status(kCompilationStreamz);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
      TF_EXPECT_OK(ExportFromTensorflowDialectToExecutor(*mlir_module_));
    
      EXPECT_EQ(compilation_status.Delta("success"), 1);
    }
    
    TEST_F(TensorflowDialectToExecutorTest, ErrorsWhenCannotConvert) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

    #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 {
          func.func @test_fold_constant() -> (tensor<1024x24x24x3xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils_test.cc

      EXPECT_TRUE(succeeded(parse_result));
    
      auto uq_requant_op = dyn_cast_or_null<TF::UniformRequantizeOp>(block.back());
      EXPECT_TRUE(uq_requant_op);
    
      return uq_requant_op;
    }
    
    TEST_F(TfToUniformAttributeUtilsTest, UniformQuantizedAddOpAttributes) {
      TfToUniformAttributeUtilsTestPeer test_peer(&ctx_);
    
      constexpr absl::string_view kAddOpExpr =
          R"mlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils_test.cc

    using mlir::UnknownLoc;
    using mlir::chlo::ChloDialect;
    using mlir::TF::TensorFlowDialect;
    using tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects;
    
    class SharedUtilsTest : public ::testing::Test {};
    
    TEST_F(SharedUtilsTest, IsInFunctionalDialectPasses) {
      MLIRContext context;
      context.loadDialect<TensorFlowDialect>();
      OpBuilder opBuilder(&context);
      OperationState state(UnknownLoc::get(opBuilder.getContext()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_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(InferenceMetricsPassTest, RecordsTrueForTPUPartitionedCallOp) {
      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
    - 3.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(LegalizeTfTypesTest, RecordsStreamzQuantOps) {
      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: Tue Mar 05 09:05:02 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

            });
      }
    
      std::unique_ptr<MLIRContext> ctx_;
      std::unique_ptr<xla::PjRtClient> pjrt_client_;
      xla::PjRtDevice* device_;
      absl::BitGen bitgen_;
    };
    
    TEST_F(ConvertTfQuantToMhloIntTest, UniformQuantizeAndDequantizeToValidGraph) {
      constexpr absl::string_view kProgram = R"mlir(
    func.func @main(%arg0: tensor<10xf32>) -> tensor<10xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_launch_util_test.cc

      Allocator* device_allocator_;
    
      XlaCompiler::Options compiler_options_;
      xla::PjRtClient* pjrt_client_;
      PjRtDeviceCompiler* device_compiler_;
      DeviceCompilationProfiler* profiler_;
    };
    
    TEST_F(PjRtExecutionUtilTest, PreparePjRtExecutableArguments) {
      std::vector<const Tensor*> inputs;
      inputs.push_back(CreateDeviceTensor<int32_t>(TensorShape({1, 3}), {0, 0, 0}));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

      }
    
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      mlir::MLIRContext context_;
      mlir::OwningOpRef<mlir::ModuleOp> module_;
      std::unique_ptr<mlir::PassManager> pm_;
    };
    
    TEST_F(VerifyClusteringPassTest, OnlyTfFunctionalPasses) {
      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: Mon Oct 30 17:03:53 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report_test.cc

    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::tsl::protobuf::TextFormat;
    using ::tsl::testing::IsOk;
    using ::tsl::testing::StatusIs;
    
    using SaveQuantizationReportInstrumentationTest = QuantizationTestBase;
    
    TEST_F(SaveQuantizationReportInstrumentationTest, SaveReport) {
      constexpr absl::string_view kModuleWithCompositeDotGeneral = R"mlir(
        func.func @main(%arg0: tensor<1x2xf32>) -> tensor<1x3xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top