Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 437 for module_op_ (0.19 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

                        mlir::ModuleOp module);
    
    // Lower TF to MHLO and insert HLO into the XlaBuilder. xla_params are HLO-level
    // inputs to module_op that have already been added to the XlaBuilder. returns
    // are the returned XlaOps.
    ABSL_DEPRECATED("Use v2/legalize_tf.h::LegalizeMlirToHlo instead.")
    Status BuildHloFromTf(mlir::ModuleOp module_op, xla::XlaBuilder& builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/func.cc

    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
          main_func_op != nullptr && IsPublicFuncOp(main_func_op)) {
        return main_func_op;
      }
    
      if (const auto serving_default_func_op =
              module_op.lookupSymbol<func::FuncOp>(kDefaultServingSignatureDefKey);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc

    }
    
    absl::StatusOr<SmallVector<AssetFileDef>> RunExportPasses(
        const ExportOptions& export_opts, MLIRContext& ctx, ModuleOp module_op) {
      if (export_opts.unfreeze_constants) {
        TF_RETURN_IF_ERROR(UnfreezeConstantsAndSaveVariables(
            export_opts.checkpoint_dir, ctx, module_op));
        LOG(INFO) << "Unfrozen constants and saved variables to checkpoint file: "
                  << export_opts.checkpoint_dir;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.cc

    }
    
    absl::StatusOr<ModuleOp> StaticRangePtqComponent::Run(
        ModuleOp module_op, const QuantizationConfig& config) {
      // Runs sub-components in sequence: PreCalibrationComponent ->
      // CalibrationComponent -> PostCalibrationComponents.
      for (std::unique_ptr<Component>& sub_component : sub_components_) {
        TF_ASSIGN_OR_RETURN(module_op, sub_component->Run(module_op, config));
      }
    
      return module_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/component.h

    class Component {
     public:
      virtual ~Component() = default;
    
      // Runs the action to the StableHLO graph, passed by the `module_op`. `config`
      // should provide information necessary to configure the action's behavior.
      virtual absl::StatusOr<ModuleOp> Run(
          ModuleOp module_op,
          const ::stablehlo::quantization::QuantizationConfig& config) = 0;
    };
    
    }  // namespace mlir::quant::stablehlo
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 03:14:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.h

    // max values.
    absl::Status AddCalibrationStatistics(
        mlir::ModuleOp module_op, absl::string_view calibration_data_dir,
        const stablehlo::quantization::CalibrationOptions& calibration_options,
        const tensorflow::quantization::PyFunctionLibrary& py_function_library);
    
    // Checks if the model required calibration.
    bool IsCalibrationRequired(mlir::ModuleOp module_op);
    
    }  // namespace stablehlo::quantization
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/common/func.h

    namespace mlir::quant {
    
    // Returns a public `func::FuncOp` in `module_op` whose name matches either
    // `main` or `serving_default`. If `func::FuncOps` with both names exist, the
    // function with name "main" takes precedence. Returns null if no such a
    // function exists.
    func::FuncOp FindMainFuncOp(ModuleOp module_op);
    
    }  // namespace mlir::quant
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

    void CastBf16OpsToF32Pass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      auto module_op = getOperation();
    
      patterns.add<CastBf16OpsToF32>(ctx);
      populateWithGenerated(patterns);
    
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        module_op.emitError() << "quant-cast-bf16-ops-to-f32 failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

              kQuantizationMethodAttr,
              StringAttr::get(module_op.getContext(),
                              std::move(*quantization_method_txtpb)));
        }
      }
      return success();
    }
    
    void LiftQuantizableSpotsAsFunctionsPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      ModuleOp module_op = getOperation();
    
      simple_patterns::populateWithGenerated(patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top