Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 209 for legalized (0.25 sec)

  1. tensorflow/compiler/mlir/lite/transforms/passes.td

      ];
    }
    
    def LegalizeWhilePass : Pass<"tfl-legalize-tf-while", "mlir::ModuleOp"> {
      let summary = "Legalize from TensorFlow While to TensorFlow Lite While.";
      let constructor = "CreateLegalizeTFWhilePass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
    }
    
    def LegalizeVariablesPass : Pass<"tfl-legalize-variables-tf", "mlir::ModuleOp"> {
      let summary = "Legalize TensorFlow variables to TensorFlow Lite dialect.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count",
        "Counts the failure of legalization of ops", "op_name", "legality");
    
    class LegalizeTF : public impl::LegalizeTFBase<LegalizeTF> {
     public:
      explicit LegalizeTF(bool legalize_chlo,
                          std::optional<StringRef> tf2xla_fallback_device_type,
                          bool prefer_tf2xla) {
        legalize_chlo_ = legalize_chlo;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

    def : Pat<(MHLO_ConstantOp:$output $value), (TF_ConstOp $value),
              [(TF_Tensor $output)]>;
    
    //===----------------------------------------------------------------------===//
    // Binary op patterns.
    // Note that these are legalized from chlo.broadcast_* ops, since those are
    // semantically compatible with the corresponding TF ops. Depending on
    // context, getting to these ops may require some raising.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

    // This transformation pass converts operations in TensorFlow dialect into
    // operations that are legal in the TensorFlow Lite dialect.  Operations that
    // can be legalized to TensorFlow Lite dialect with simple replacements are part
    // of this pass and other operations that may create extra ops should be part of
    // the PrepareTF pass which should be run before this pass.  That way any
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

                            lower_to_xla_hlo);
    
      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>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

    }
    
    def TFR_TFRQuantRescaleOp : TFR_Op<"quant_rescale", [Pure]> {
      let description = [{
       The `quant_rescale` rescales the elements of the integer tensor by the
       floating-point rescale factor. This op needs to be legalized to the preferred
       operations of the backends.
    
        Example:
    
        ```mlir
        %3 = tfr.quant_rescale(%2, %1, %0) :
            (tfr.tensor, tfr.tensor, i64) -> (tfr.tensor)
        ```
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    ==============================================================================*/
    
    // This transformation pass prepares for legalization to the TFLite dialect by
    // converting operations in TensorFlow dialect into operations that can be
    // legalized to TensorFlow Lite dialect with simple replacements.  The newly
    // created operations are in the TensorFlow dialect if the operation can be
    // represented using a TensorFlow op.  Otherwise, TensorFlow Lite dialect op is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/legalize-tf-while.mlir

    // RUN: tf-opt --tfl-legalize-tf-while %s -o - | FileCheck %s
    // RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline='default-pipeline=''' | FileCheck %s --check-prefix=INLINE
    // RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline | FileCheck %s --check-prefix=CANON
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/legalize-tf-variables.mlir

    // RUN: tf-opt %s -split-input-file -tfl-legalize-variables-tf --cse | FileCheck %s
    
    // Test for case with no session initialize op.
    module attributes {tf_saved_model.semantics} {
      // CHECK-LABEL: serving_default
      func.func @serving_default(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}) ->
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-vhlo.mlir

    // RUN: odml-to-stablehlo-opt %s --stablehlo-legalize-vhlo -split-input-file | FileCheck %s
    // RUN: odml-to-stablehlo-opt --stablehlo-legalize-vhlo %s | odml-to-stablehlo-opt --vhlo-legalize-stablehlo > %t.0
    // RUN: odml-to-stablehlo-opt %s > %t.1
    // RUN: diff %t.0 %t.1
    
    // CHECK-LABEL: op_tfl
    func.func @op_tfl(%arg0 : tensor<f32>) -> (tensor<f32>) {
      // CHECK: %0 = tfl.add %arg0, %arg0 {fused_activation_function = "NONE"} : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 22:39:35 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top