Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 89 for legalization (0.19 sec)

  1. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir

      func.return %conv2d : tensor<1x300x300x40xi8>
    }
    
    //===----------------------------------------------------------------------===//
    // tf.UniqueV2 legalization
    //===----------------------------------------------------------------------===//
    
    // -----
    
    // CHECK-LABEL: @doesnt_legalize_uniquev2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

      // it is disabled explicitly.
      bool infer_tensor_range =
          (quant_specs_.post_training_quantization || eager_quantize) &&
          !quant_specs_.disable_infer_tensor_range;
    
      // During the legalization, unsigned quantized type is used, so we have to
      // convert all of them to signed.
      RewritePatternSet patterns(ctx);
      populateWithGenerated(patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

        patterns_1.add<PropagateTransposedPerAxisQuantDim>(ctx);
      }
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns_1));
    
      // During the legalization, unsigned quantized type is used, so we have to
      // convert all of them to signed.
      RewritePatternSet patterns_2(&getContext());
      if (is_signed) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        // Replace the uses of block arguments with function arguments. Note that we
        // can't erase the arguments here because the operations may still use them
        // and these uses will be dropped after legalization of each op.
        unsigned idx = 0;
        Block &block = graph_func.getBody().front();
        for (auto iter = block.args_begin(), end_iter = block.args_end();
             iter != end_iter; ++iter) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-binary-elementwise.mlir

    // Note that binary elementwise tests are run with chlo legalization enabled
    // (unlike the rest), since this is the primary use case for such ops and
    // verification of shapes and broadcasts is desired.
    // RUN: tf-opt "-xla-legalize-tf=legalize-chlo=true" -canonicalize %s | FileCheck %s
    // RUN: tf-opt "-xla-legalize-tf=legalize-chlo=false" %s | FileCheck --check-prefix CHLO %s
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // This is the legalization pattern definition file for TF to XLA.
    
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Shape/IR/ShapeOps.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/Dialect/Tensor/IR/TensorOps.td"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      return op->getResult(0).getType().cast<TensorType>().clone(
          new_result_quantized_type);
    }
    
    // Matches kernel dimension numbers, ranks of input and output and constant
    // kernel for legalization to TFLite convolution ops.
    LogicalResult MatchConvolutionFormat(stablehlo::ConvolutionOp op) {
      stablehlo::ConvDimensionNumbersAttr dimension_numbers =
          op.getDimensionNumbers();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // This is the legalization pattern definition file for HLO to TF.
    
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "stablehlo/dialect/ChloOps.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // TFLite legalization patterns
    
    include "mlir/IR/OpBase.td"
    include "mlir/IR/PatternBase.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/converter_gen.cc

        }
        os << "    if (!emit_error_on_verify_fail) {\n";
        os << "// Ignore transient errors by registering an no-op handler.\n"
              "// Applying legalization patterns will emit unwanted, transient \n"
              "// errors when the replaced TFLite ops do not meet the sanity \n"
              "// checks. \n"
              "// In order to ignore the transient errors, the following lines \n"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
Back to top