Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 275 for lowering (0.7 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/tensorflow/transforms/lower_tf.h

    // Populates TensorFlow lowering patterns to lower some of the TensorFlow
    // operations that can be represented by means of other TensorFlow operations.
    // This pattern collection preserves those TensorFlow operations that will later
    // be lowered to equivalent operations in CHLO or MHLO. This allows for
    // HLO-specific lowerings.
    void PopulateTFLoweringBeforeHLOPatterns(MLIRContext *context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-include-tf2xla-fallback.mlir

    }
    
    // BatchMatMulV2 has native as well as fallback lowering patterns available.
    // The fallback pattern uses dot_general without broadcast on operands and then
    // transposes the output which is faster. However, the fallback pattern doesn't
    // support dynamic shaped operands like the native lowering. Verify that
    // fallback lowering is preferred for static shaped operands when available.
    
    // CHECK-LABEL: batchmatmulv2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/lower.go

    	}
    }
    
    // checkLower checks for unlowered opcodes and fails if we find one.
    func checkLower(f *Func) {
    	// Needs to be a separate phase because it must run after both
    	// lowering and a subsequent dead code elimination (because lowering
    	// rules may leave dead generic ops behind).
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if !opcodeTable[v.Op].generic {
    				continue // lowered
    			}
    			switch v.Op {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 00:16:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. 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)
  8. test/codegen/issue42610.go

    // asmcheck
    
    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Don't allow 0 masks in shift lowering rules on ppc64x.
    // See issue 42610.
    
    package codegen
    
    func f32(a []int32, i uint32) {
            g := func(p int32) int32 {
                    i = uint32(p) * (uint32(p) & (i & 1))
                    return 1
            }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 18:24:12 UTC 2023
    - 623 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc

          if (values.size() != 1 || values[0] != "%FILE_PLACEHOLDER") {
            continue;
          }
    
          op.setValueAttr(DenseStringElementsAttr::get(shaped_type, {filename}));
        }
      }
    
      // Run the lowering pass.
      PassManager pm(context);
      pm.addNestedPass<func::FuncOp>(CreateInitTextFileToImportPass(""));
      if (failed(pm.run(module))) return signalPassFailure();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue43099.go

    // license that can be found in the LICENSE file.
    
    // Check to make sure we don't try to constant fold a divide by zero.
    // This is a tricky test, as we need a value that's not recognized as 0
    // until lowering (otherwise it gets handled in a different path).
    
    package p
    
    func f() {
    	var i int
    	var s string
    	for i > 0 {
    		_ = s[0]
    		i++
    	}
    
    	var c chan int
    	c <- 1 % i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 10 03:18:00 UTC 2020
    - 858 bytes
    - Viewed (0)
Back to top