Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for ParseModuleOpString (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

        ::mlir::quant::QuantizationTestBase;
    
    TEST_F(ConvertMlirModuleToExportedModelTest, SimpleGraphDefSet) {
      // Define a module a no-op main function.
      mlir::OwningOpRef<mlir::ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module attributes {tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report_test.cc

          return %0 : tensor<1x3xf32>
        }
      )mlir";
    
      const OwningOpRef<ModuleOp> module_op =
          ParseModuleOpString(kModuleWithCompositeDotGeneral);
      ASSERT_TRUE(module_op);
    
      // Create a pass manager with `SaveQuantizationReportInstrumentation` and
      // `QuantizeCompositeFunctionsPass`. Run the passes against `module_op`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

          return %1 : tensor<1x3x!quant.uniform<i8:f32, 5.000000e+0>>
        }
      )mlir";
    
      const OwningOpRef<ModuleOp> module_op =
          ParseModuleOpString(kQuantizedDotGeneral);
      ASSERT_TRUE(module_op);
    
      const QuantizationReport report(*module_op);
      const QuantizationResults& results = report.GetQuantizationResults();
      ASSERT_THAT(results.results(), SizeIs(1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/test_base.h

            tf_executor::TensorFlowExecutorDialect, quant::QuantizationDialect,
            quantfork::QuantizationForkDialect>();
      }
    
      // Parses `module_op_str` to create a `ModuleOp`.
      OwningOpRef<ModuleOp> ParseModuleOpString(
          const absl::string_view module_op_str) {
        return parseSourceString<ModuleOp>(module_op_str, ctx_.get());
      }
    
      // Convenience function that returns the first operation of type `OpT` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

    TEST_F(PreCalibrationComponentTest,
           HasCustomAggregatorOpAndQuantizableFuncForSimpleDotGeneral) {
      PreCalibrationComponent component(ctx_.get());
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module attributes {} {
          func.func @main(%arg0: tensor<1x4xf32>) -> tensor<1x3xf32> attributes {} {
            %0 = stablehlo.constant dense<1.0> : tensor<4x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top