Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for lowering (0.12 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. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (Neg(64|32|16|8) x) => (I64Sub (I64Const [0]) x)
    (Neg(64|32)F ...) => (F(64|32)Neg ...)
    
    (Com(64|32|16|8) x) => (I64Xor x (I64Const [-1]))
    
    (Not ...) => (I64Eqz ...)
    
    // Lowering pointer arithmetic
    (OffPtr ...) => (I64AddConst ...)
    
    // Lowering extension
    // It is unnecessary to extend loads
    (SignExt32to64        x:(I64Load32S _ _)) => x
    (SignExt16to(64|32)   x:(I64Load16S _ _)) => x
    (SignExt8to(64|32|16) x:(I64Load8S  _ _)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K 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. tensorflow/compiler/mlir/lite/experimental/tac/README.md

    # Target Aware Conversion (TAC)
    
    Different hardwares have different capabilities and restrictions.
    
    TAC is designed to leverage hardwares' capabilities to:
    
    *   Perform device-specific optimizations (such as unsupported ops lowering,
        layout transformations, etc.)
    *   Graph partitioning based on the hardware costs modeling.
    *   It supports general import/export where you can hook your own
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 29 18:32:13 UTC 2022
    - 11.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

    //   passes for backend-specific ops.
    // lower_to_xla_hlo: Temporary parameter to be removed in imminent update. If
    //   true, includes legalization and MHLO lowering passes.
    // allow_partial_conversion: when this is true, allow operations that can't be
    //   legalized.
    ABSL_DEPRECATED("Use v2/legalize_tf.h::LegalizeMlirToHlo instead.")
    void CreateConvertMlirToXlaHloPipeline(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

          /*parallel_iterations=*/10, false,
          /*shape_invariant=*/false);
    
      // `_lower_using_switch_merge` is the default for While ops created
      // in TensorFlow and allows lowering to V1 control flow for loop
      // parallelization.
      dataset_while->setAttr("_lower_using_switch_merge",
                             builder.getBoolAttr(true));
    
      return dataset_while;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_launch_util.h

    // `variable_snapshots` is a map of {index of the input to the
    // compilation_result -> underlying Tensor the variable is/was pointing to (i.e.
    // the value of the variable at the time of lowering/compilation)}.
    //
    // The obtained PjRtBuffers are populated to `args` vector.
    // `non_donatable_input_indices` will also be set, which contains the indices of
    // the input that should not be donated to output.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top