Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 84 for legalized (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

    // This transformation pass prepares for legalization to the TFLite dialect by
    // converting Tensorlist 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 used.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

    // RUN: tf-opt "-xla-legalize-tf=legalize-chlo=false" -split-input-file %s | FILECHECK_OPTS="" FileCheck %s
    // RUN: tf-opt "-xla-legalize-tf=legalize-chlo=true" -split-input-file -verify-diagnostics %s | FileCheck %s --check-prefix CHLO --dump-input-filter=all
    // This test runs twice:
    //   1. Through FILECHECK_OPTS="" FileCheck with chlo legalization disabled since verifying
    //      that the chlo ops emit produces more useful tests.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/legalize-tf-no-runtime-verification.mlir

    // RUN: tf-opt %s -tfl-prepare-tf -tfl-legalize-tf='run-tfl-runtime-verification=false'  -tfl-optimize | FileCheck %s
    
    func.func @broadcast_to_bf16(%arg0: tensor<3xbf16>, %arg1: tensor<2xi64>) -> tensor<3x3xbf16> {
      %0 = "tf.BroadcastTo"(%arg0, %arg1) : (tensor<3xbf16>, tensor<2xi64>) -> tensor<3x3xbf16>
      func.return %0: tensor<3x3xbf16>
    
    // CHECK-LABEL: broadcast_to_bf16
    // CHECK:  [[CST:%.*]] = arith.constant dense<1.000000e+00> : tensor<3x3xbf16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 648 bytes
    - Viewed (0)
Back to top