Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Tf2XlaTypeConverter (0.23 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla_passes.h

    class Operation;
    template <typename T>
    class OperationPass;
    class Pass;
    
    namespace mhlo {
    
    /// Converter to be used along with the fallback Tf2Xla patterns below.
    class Tf2XlaTypeConverter : public TypeConverter {
     public:
      Tf2XlaTypeConverter();
    };
    
    /// Adds the TF to XLA via TF2XLA rewrite patterns to the pattern list.
    /// `prefer_tf2xla` means an op will be included iff it is not in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

        Operation* cloned_op = rewriter.clone(*op, mapper);
        rewriter.replaceOp(op, cloned_op->getResults());
        return success();
      }
    };
    
    }  // end namespace
    
    Tf2XlaTypeConverter::Tf2XlaTypeConverter() {
      // Currently, we don't do any type conversions. Any TensorFlow op with a type
      // that is not supported in MHLO will fail conversion. Quantized types are
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

      MLIRContext *context = func->getContext();
    
      RewritePatternSet patterns(context);
      mhlo::PopulateLegalizeTfPatterns(context, &patterns);
      TF::PopulateTFLoweringBeforeHLOPatterns(context, &patterns);
      mhlo::Tf2XlaTypeConverter converter;
      mhlo::PopulateLegalizeTfWithTf2XlaPatterns(
          "XLA_CPU_JIT", patterns, context, converter, /*prefer_tf2xla=*/false);
      stablehlo::StablehloToHloTypeConverter hlo_converter;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

                                       ? PatternsIncludeOps(legalize_lower_patterns)
                                       : std::move(legalize_lower_patterns);
    
      Tf2XlaTypeConverter converter;
      if (tf2xla_fallback_device_type) {
        // Add TF->HLO legalization patterns via TF2XLA fallback.
        PopulateLegalizeTfWithTf2XlaPatterns(tf2xla_fallback_device_type.value(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

      target.addLegalOp<ModuleOp>();
      target.addLegalOp<func::FuncOp>();
      target.addIllegalOp<TF::XlaConvV2Op>();
      target.addIllegalOp<TF::XlaGatherOp>();
    
      RewritePatternSet patterns(context);
      mhlo::Tf2XlaTypeConverter converter;
      mhlo::PopulateLegalizeTfWithTf2XlaPatterns("XLA_CPU_JIT", patterns, context,
                                                 converter);
      mhlo::PopulateLegalizeTfPatterns(context, &patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top