Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for mhlo (0.08 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

      %8 = mhlo.divide %7, %2 : tensor<64xf32>
      %9 = mhlo.floor %8 : tensor<64xf32>
      %10 = mhlo.convert %9 : (tensor<64xf32>) -> tensor<64xi32>
      %11 = mhlo.compare  LT, %10, %1,  SIGNED : (tensor<64xi32>, tensor<64xi32>) -> tensor<64xi1>
      %12 = mhlo.add %10, %0 : tensor<64xi32>
      %13 = mhlo.select %11, %12, %10 : tensor<64xi1>, tensor<64xi32>
      %14 = mhlo.reshape %13 : (tensor<64xi32>) -> tensor<64x1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

        if (failed(output_type)) {
          return failure();
        }
    
        auto input_quant = rewriter.create<mhlo::BitcastConvertOp>(
            op->getLoc(), *input_quant_type, input);
        auto result = rewriter.create<mhlo::UniformQuantizeOp>(
            op->getLoc(), *output_type, input_quant);
        rewriter.replaceOpWithNewOp<mhlo::BitcastConvertOp>(
            op,
            output_type->clone(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      if (lower_to_xla_hlo) {
        // This pass operates on MHLO control flow ops so it should be legalized
        // after the control flow ops are legalized.
        pm.addPass(mlir::mhlo::CreateLegalizeTFCommunicationPass());
    
        // Everything should be MHLO after this.
        if (!allow_partial_conversion) {
          pm.addNestedPass<mlir::func::FuncOp>(
              mlir::mhlo::CreateVerifyTFXLALegalizationPass(legalize_chlo));
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      // Legalize MHLO to StableHLO should be moved closer to where it is needed
      // There are some entry points that start with HLO->MHLO like
      // jax_to_tfl_flatbuffer.cc which can likely be updated to emit StableHLO
      // to be consistent with other entrypoints.
      pass_manager.addPass(mlir::mhlo::createHloLegalizeToStablehloPass());
    
      // Decompose CHLO into StableHLO ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

    #include "tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/mlir_hlo/mhlo/transforms/rewriters.h"
    #include "xla/mlir_hlo/mhlo/utils/type_conversion.h"
    #include "tensorflow/core/lib/monitoring/counter.h"
    
    namespace mlir {
    namespace mhlo {
    namespace {
    
    #define GEN_PASS_DEF_LEGALIZETF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

            custom_legalization_passes);
    
    // Compiles a Graph from TF to HLO and adds the resulting HLO to the
    // XlaBuilder. This function adds HLO to a larger HLO computation, so
    // HLO-level inputs are supplied, and HLO-level outputs are produced.
    // xla_params is the HLO-level inputs and returns is the HLO-level outputs.
    // If unconditionally_use_output_shapes is true then the unregistered
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
      func.func @main(%arg0: tensor<?xi32, #mhlo.type_extensions<bounds = [3]>> ) -> (tensor<?xi32, #mhlo.type_extensions<bounds = [3]>>) {
        func.return %arg0 : tensor<?xi32, #mhlo.type_extensions<bounds = [3]>>
      }
    })";
    
      auto compilation_result = CompileMlirModule(
          kMlirModuleWithBoundedDynamicArgStr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

    #include "tensorflow/compiler/tf2xla/xla_compiler.h"
    #include "tensorflow/compiler/tf2xla/xla_helpers.h"
    #include "xla/client/compile_only_client.h"
    #include "xla/hlo/ir/hlo_input_output_alias_config.h"
    #include "xla/mlir_hlo/mhlo/IR/register.h"
    #include "xla/shape.h"
    #include "xla/shape_util.h"
    #include "xla/status_macros.h"
    #include "tensorflow/core/framework/function.h"
    #include "tensorflow/core/framework/op.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td

      let dependentDialects = ["mlir::stablehlo::StablehloDialect"];
      let constructor = "mlir::quant::stablehlo::CreateQuantizeWeightPass()";
    }
    
    def UnfuseMhloBatchNormPass : Pass<"stablehlo-unfuse-mhlo-batch-norm", "mlir::func::FuncOp"> {
      let summary = "Unfuses batch normalization into arithmetic ops.";
    }
    
    def LiftQuantizableSpotsAsFunctionsPass : Pass<"stablehlo-lift-quantizable-spots-as-functions", "mlir::ModuleOp"> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/xla_call_module_attrs.h"
    #include "tensorflow/compiler/tf2xla/kernels/xla_call_module_loader.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"  // IWYU pragma: keep
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    #define GEN_PASS_DEF_XLACALLMODULEDESERIALIZATIONPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top