Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for module_op_ (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      OwningOpRef<ModuleOp> module_op =
          ParseModuleOpString(kConstantOpWithRankFour);
      ASSERT_TRUE(module_op);
    
      ASSERT_FALSE(module_op->getBodyRegion().empty());
      ASSERT_FALSE(module_op->getBodyRegion().front().empty());
    
      auto constant_op = dyn_cast_or_null<mlir::stablehlo::ConstantOp>(
          module_op->getBodyRegion().front().front());
      ASSERT_THAT(constant_op, NotNull());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

    absl::StatusOr<ExportedModel> ExportDebuggingModel(
        mlir::ModuleOp module_op, mlir::MLIRContext *context,
        const QuantizationOptions &quantization_options,
        const absl::flat_hash_map<std::string, std::string> &function_aliases) {
      // Clone ModuleOp and function aliases so changes in this pipeline won't
      // be reflected in the original values.
      mlir::OwningOpRef<mlir::ModuleOp> cloned_module_ref(module_op.clone());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

      // Runs calibration on `module_op` and returns a calibrated ModuleOp with
      // calibrated statistics embedded.
      absl::StatusOr<ModuleOp> Run(
          ModuleOp module_op,
          const ::stablehlo::quantization::QuantizationConfig& config) override;
    
     private:
      // Exports `module_op` to SavedModel at `dst_saved_model_path`. This is used
      // to export the pre-calibrated `module_op` to SavedModel so that the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    // passed to the target function.
    LogicalResult LiftHashTableOpsToArguments(ModuleOp module_op,
                                              func::FuncOp target_func) {
      if (!llvm::hasSingleElement(target_func)) return success();
      if (!UsedBySupportedOps(module_op, target_func)) return success();
      if (IsMainOrInitializerFunction(module_op, target_func)) return success();
    
      llvm::StringMap<int> shared_name_to_arg_idx;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

    }  // namespace
    
    absl::Status RunCalibrationPasses(
        mlir::ModuleOp module_op, MLIRContext& ctx,
        absl::string_view calibration_data_dir,
        const bool force_regenerate_calibration_data) {
      // Disable DumpTensor ops when running calibration.
      DisableDebugging(module_op);
    
      std::vector<std::string> skipping_aggregator_ops;
      if (!force_regenerate_calibration_data) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      TF_RETURN_IF_ERROR(RefineShapes(arg_shapes, module_op));
    
      if (VLOG_IS_ON(2))
        tensorflow::DumpMlirOpToFile("compile_mlir_shape_refiner", module_op);
    
      return absl::OkStatus();
    }
    
    Status BuildHloFromTf(mlir::ModuleOp module_op, xla::XlaBuilder& builder,
                          llvm::ArrayRef<xla::XlaOp> xla_params,
                          std::vector<xla::XlaOp>& returns,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc

    absl::Status AddCalibrationStatistics(
        mlir::ModuleOp module_op, absl::string_view calibration_data_dir,
        const CalibrationOptions& calibration_options,
        const PyFunctionLibrary& py_function_library) {
      TF_ASSIGN_OR_RETURN(const CalibrationStatisticsFlatMap statistics_map,
                          ReadStatistics(calibration_data_dir));
    
      absl::Status status = absl::OkStatus();
      module_op.walk([&py_function_library, &calibration_options, &status,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc

          /*noinline_functions=*/aliased_function_names, *module_op, context,
          session,
          /*run_tf_to_stablehlo=*/true, /*deserialize_xla_call_module=*/false,
          input_arg_shapes));
    
      return std::move(module_op);
    }
    
    }  // namespace
    
    absl::StatusOr<OwningOpRef<ModuleOp>> TfToStablehlo(
        absl::string_view input_path, MLIRContext* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top