Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for lowering (0.18 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

    // RUN: odml-to-stablehlo-opt -composite-lowering -verify-diagnostics %s | FileCheck %s
    
    func.func @hardswish(%arg0: tensor<2xf32>) -> (tensor<*xf32>) {
      %0 = mhlo.composite "aten.hardswish.default" %arg0 {decomposition = @XlaCallModule_aten.hardswish.default.impl_0} : (tensor<2xf32>) -> tensor<2xf32>
      %1 = "tf.Identity"(%0) {device = ""} : (tensor<2xf32>) -> tensor<*xf32>
      %2 = "tf.Identity"(%1) {device = ""} : (tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/lowering_passes.td

    def InputLoweringMetricsPass : Pass<"input-lowering-metrics-pass", "mlir::func::FuncOp"> {
    
      let summary = "Collects various metrics about the input to the lowering "
                    "portion of the bridge. This is a logical no-op.";
    
      let description = [{
        Gathers metrics about the input MLIR to Phase 2 of the TFXLA Bridge, which
        does a strict semantic lowering from Tensorflow ops to XLA HLO.
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 19:49:04 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

      // canonicalized to plain HLO constant if statically shaped. Add the
      // canonicalization pattern to pattern list to enable multi-hop lowering.
      chlo::ConstantLikeOp::getCanonicalizationPatterns(patterns, context);
    
      return ApplyPatterns(op, patterns, legalize_chlo);
    }
    
    // Performs the lowering to XLA dialect.
    void LegalizeTF::runOnOperation() {
      auto op = getOperation();
      auto op_name = op->getName().getStringRef().str();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

                              tensorflow::ConvertTensor(tensor, &builder));
          builder.setInsertionPoint(
              &func_op.getFunctionBody().getBlocks().front().front());
          // Use mhlo.Constant when it is consumed by the lowering passes since they
          // can't lower tf.Const.
          Value cst;
          if (use_mhlo_const) {
            cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs);
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/config.go

    	Types          Types
    	lowerBlock     blockRewriter  // block lowering function, first round
    	lowerValue     valueRewriter  // value lowering function, first round
    	lateLowerBlock blockRewriter  // block lowering function that needs to be run after the first round; only used on some architectures
    	lateLowerValue valueRewriter  // value lowering function that needs to be run after the first round; only used on some architectures
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h

    bool IsOpAllowedTf2xlaFallback(const TypeID& type_id);
    
    // Whether this type is Preferred to use a TF2XLA fallback kernel when using
    // the MLIR bridge. If this is true, then the TF2XLA fallback kernel will be
    // used over the MLIR lowering.
    bool IsOpAllowedTf2xlaPreferred(const TypeID& type_id);
    
    }  // namespace mhlo
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 20:53:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

        // IDE tries to acquire its bytecode via the index, however,
        // the index doesn't cover classfiles from compiler output,
        // so the lowering fails.
        //
        // To solve the problem, we need to find all delegated properties with inline accessors
        // reachable from files that will be compiled, and include files these inline accessors
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

      // CHECK: mlrt.await_handle [[handle_1]]
      mlrt.await_handle %handle_0
      mlrt.await_handle %handle_1
    
      // CHECK: return [[result]]
      return %result : tensor<i32>
    }
    
    // -----
    
    // Test lowering tf.If
    
    func.func @then(%x: tensor<i32>, %y: tensor<i32>) -> tensor<i32> {
      return %x: tensor<i32>
    }
    
    func.func @else(%x: tensor<i32>, %y: tensor<i32>) -> tensor<i32> {
      return %y: tensor<i32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.h

    // Creates an instance of the VerifyQuantLegalization pass, which verifies all
    // quant ops and types are lowered.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateVerifyQuantLegalizationPass();
    
    // Add all passes for lowering TF quant ops and types to MHLO int.
    void AddQuantizationLoweringPasses(mlir::OpPassManager &pm);
    
    // Creates an instance of OptimizeIntGraphPass, which optimizes the int graph
    // lowered from the quantized graph.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

    using ::tensorflow::thread::ThreadPoolInterface;
    
    using ::tensorflow::tfrt_stub::FallbackTensor;
    
    // -------------------------------------------------------------------------- //
    // Run function via the TF->TFRT fallback lowering.
    // -------------------------------------------------------------------------- //
    
    namespace {
    // Thread pool for running `intra-op` tasks scheduled by the fallback kernels.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top