Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 173 for mhlo (0.22 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

    #include "tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    
    LogicalResult MatchReduceToArgMinMaxType1(mhlo::ReduceOp reduce_op,
                                              bool is_float, bool is_argmax);
    
    LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op,
                                              bool is_argmax);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/passes.h

    // Legalizes TF/XLA communication ops (TF dialect) to HLO dialect communication
    // ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFCommunicationPass();
    
    // Legalizes TF/XLA collective ops (TF dialect) to HLO dialect collective
    // ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFCollectivePass();
    
    // Verifies that the TF/XLA ops have all been lowered to MHLO.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.h

    #include "mlir/Transforms/DialectConversion.h"  // from @llvm-project
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    
    class ConvertCustomCallOp : public OpConversionPattern<mhlo::CustomCallOp> {
     public:
      using OpConversionPattern::OpConversionPattern;
    
      LogicalResult matchAndRewrite(
          mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor,
          ConversionPatternRewriter& rewriter) const final;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 02:41:24 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

    #include "tensorflow/compiler/mlir/tf2xla/transforms/passes.h"
    #include "tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "tensorflow/core/lib/monitoring/counter.h"
    #include "tensorflow/core/platform/errors.h"
    
    namespace mlir {
    namespace mhlo {
    
    namespace {
    
    #define GEN_PASS_DEF_VERIFYTFXLALEGALIZATION
    #include "tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_passes.h.inc"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc

    #include "xla/layout.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/shape.h"
    #include "xla/stream_executor/tpu/c_api_conversions.h"
    #include "xla/stream_executor/tpu/tpu_api.h"
    #include "xla/translate/mhlo_to_hlo/type_to_shape.h"
    
    namespace mlir {
    namespace mhlo {
    namespace {
    
    #define GEN_PASS_DEF_INFEEDOPSXLAADJUSTLAYOUT
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc

        func.func @main(%arg0: tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>) -> tensor<?xi32, #mhlo.type_extensions<bounds = [1]>> {
          %0 = "tf.Identity"(%arg0) : (tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>) -> tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>
          func.return %0 : tensor<?xi32, #mhlo.type_extensions<bounds = [1]>>
        }
      })";
      SetPassThatChangedIdentity("");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.cc

    #include "xla/mlir_hlo/mhlo/transforms/passes.h"
    
    namespace mlir::quant::stablehlo {
    
    void AddQuantizationLoweringPasses(mlir::OpPassManager& pm) {
      // These passes are grouped together and must run in this specific order.
      pm.addNestedPass<mlir::func::FuncOp>(CreateConvertTFQuantOpsToMHLOPass());
      pm.addNestedPass<mlir::func::FuncOp>(mhlo::createChloLegalizeToHloPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.h

    namespace mlir {
    namespace mhlo {
    
    // Returns a ConversionTarget that includes default legalized MLIR dialects
    // for conversion to XLA.
    // If legalize_chlo is true, the resulting conversion target cannot have CHLO.
    mlir::ConversionTarget GetDefaultLegalConversionTargets(
        MLIRContext& mlir_context, bool legalize_chlo);
    
    }  // namespace mhlo
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_to_hlo_pipeline/sccp-post-shape-inference.mlir

    // RUN: tf-opt -tf-to-hlo-pipeline %s | FileCheck %s
    
    // Verifies that constants generated post shape inference are propagated.
    // get_shape result in this test.
    module attributes {tf.versions = {producer = 179 : i32}} {
    
      // CHECK-LABEL: func @main
      func.func @main(%arg0: tensor<10x19xf32>, %arg1: tensor<19x10xf32> {mhlo.is_same_data_across_replicas = true}) -> tensor<?xi64> {
        %0 = "tf.Shape"(%arg0) : (tensor<10x19xf32>) -> tensor<2xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 25 02:54:34 UTC 2023
    - 1020 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.td

    include "mlir/IR/OpBase.td"
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    include "mhlo/IR/hlo_ops.td"
    include "stablehlo/dialect/ChloOps.td"
    
    def IsDefinedByConvOrDotGeneralOp : Constraint<Or<[
      CPred<"$0.getDefiningOp<mhlo::ConvolutionOp>()">,
      CPred<"$0.getDefiningOp<mhlo::DotGeneralOp>()">]>>;
    
    def IsNull : Constraint<CPred<"!$0">>;
    
    // This pattern optimizes:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top