Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for legalization (0.21 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // Declare bridge passes that perform legalization and/or lowering.
    
    include "mlir/Pass/PassBase.td"
    
    def ConvertTFQuantOpsToMHLO : Pass<"quant-convert-tf-quant-ops-to-mhlo", "mlir::func::FuncOp"> {
      let summary = "Convert TF Quant ops to MHLO quantizated ops.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

                  (UpdateShapeWithAxis<-1> $qtype, $old_value))),
              [(CanUpdateShapeWithAxis<-1> $qtype, $old_value)]>;
    
    // The axis is set to 0 because the transpose is from the legalization of
    // tf.conv2d and the new channel axis is the first dimension.
    def ReorderTransposeDequantQuantUsedByConv :
          Pat<(TF_TransposeOp:$old_value
                  (TFL_DequantizeOp (TFL_QuantizeOp $input, $qtype)), $perm),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/tac_module.cc

      if (options_.legalize_to_tflite_ops) {
        // After we creat the alternative subgraph, we can still do canonicalization
        // legalization & other optimizations as long as we're not inlining the
        // function.
        // And in fact, we probably need to do the proper legalization, for the
        // compute cost to work. (in case we added some TF ops)
        pass_manager->addPass(mlir::TFL::CreatePrepareTFPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_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 TFL.
    
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mhlo/IR/hlo_ops.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 18:07:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

          TypeID::get<TF::OutfeedEnqueueTupleOp>(),
          TypeID::get<TF::XlaShardingOp>(),
    
          // These ops have undetermined bugs, may not be legalizable with
          // XlaOpKernel
          // legalization in TF2XLA fallback. By legalization with MLIR, we can fix
          // the bug. b/195583695 describes the motivation of this change.
          // See b/216355804 how to reproduce the bug regarding tf.RandomUniform Op
    
          // Conditional ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/legalize_variables.td

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // TFLite variables legalization patterns
    include "mlir/IR/PatternBase.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    def HasSupportedElementType :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 16 23:20:46 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      // TF -> StableHLO legalization.
      // Skip StatefulPartitionedCall to preserve aliased functions.
      mlir::odml::AddLegalizeTFToStablehloPasses(pm, /*skip_quantization_ops=*/true,
                                                 /*skip_resize=*/false,
                                                 /*skip_partitioned_calls=*/true);
      // StableHLO -> MHLO legalization for MHLO optimization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/common/tfl_pass_config.h

          : quant_specs(std::move(specs)) {}
    
      // If `emit_builtin_tflite_ops` is true, TF Lite legalization passes will be
      // added, which produces TF Lite ops.
      bool emit_builtin_tflite_ops = true;
      // If `lower_tensor_list_ops` is true, tensorlist ops will be lowered to basic
      // TF ops before legalization to TF Lite dialect.
      bool lower_tensor_list_ops = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc

    };
    
    TEST_F(TestPassInstrumentation, CreatedCalledAndSetsPassName) {
      RegisterPassInstrumentor(kTestInstrumentationName, [&]() {
        return std::make_unique<TestInstrumentor>(this);
      });
      constexpr char legalization[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-quant.mlir

    
    //===----------------------------------------------------------------------===//
    // tf.UniformQuantizedDotHybrid legalization
    //===----------------------------------------------------------------------===//
    
    // CHECK-LABEL: func @quantized_matmul_fn
    func.func @quantized_matmul_fn(%input: tensor<?xf32>) -> tensor<?xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 01:25:29 UTC 2024
    - 37.3K bytes
    - Viewed (0)
Back to top