Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Canonicalize (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

    // RUN: tf-opt %s -pass-pipeline='builtin.module(func.func(canonicalize{test-convergence}))' | FileCheck %s
    
    // CHECK-LABEL: func @tfAssertTrue
    func.func @tfAssertTrue(%arg0: tensor<1x1x6x2xf32>) {
      %t = arith.constant dense<true> : tensor<i1>
      // CHECK-NOT: tf.Assert
      "tf.Assert"(%t, %arg0) {summarize = 3} : (tensor<i1>, tensor<1x1x6x2xf32>) -> ()
      func.return
    }
    
    // CHECK-LABEL: func @tfAssertFalse
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          point = point < 0 ? dim_i + point : point;
          return Clamp(point, bounds[0], bounds[1]);
        };
    
        begin_i = canonicalize(begin_i, 0);
        end_i = canonicalize(end_i, 1);
    
        int64_t interval_len = end_i - begin_i;
        int64_t size_i = 0;
        // If internal length is zero or has different sign from stride, it's a
        // degenerated case: we are slicing nothing. Otherwise, calculate the sliced
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      let constructor = "TF::CreateBatchMatMulToEinsumPass()";
    }
    
    def CanonicalizeCompileAndReplicateAttributesPass : Pass<"tf-canonicalize-compile-and-replicate-attributes", "mlir::func::FuncOp"> {
      let summary = "Canonicalize compilation and replication attributes.";
    
      let description = [{
        A pass that converts existing compilation and replication attributes into
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    //===----------------------------------------------------------------------===//
    // PolyCallOp
    //===----------------------------------------------------------------------===//
    
    namespace {
    // Canonicalize converted TF ops into PolymorphicCall op so different
    // representations are preserved.
    struct PolyCallResultOperandsMatchAndImplicitCapture
        : public OpRewritePattern<PolyCallOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            ++offset_index;
          }
        }
    
        // Populate the trnaspose permutation params from a "canonicalized" output
        // to the real output.
        // The canonicalized layout would be batch_dims followed by sliced_dims.
        // The current layout is essentially a transpose after the canonicalized
        // layout.
        // Take the following as an example:
        // If we have the:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

                                                        &result.attributes));
      }
    
      const auto& node_def = node.def();
      // NodeDef can contain partial TF device names. In such cases, canonicalize
      // it. Note that in current TF, placer will place full device name to each
      // node.
      DeviceNameUtils::ParsedName parsed_name;
      if (!DeviceNameUtils::ParseFullName(node_def.device(), &parsed_name)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/generic.rules

    (OrB ((Less|Leq)8U  (Const8  [c]) x) (Leq8U  x (Const8  [d]))) && uint8(c)  >= uint8(d+1)  && uint8(d+1)  > uint8(d)  => ((Less|Leq)8U  (Const8  <x.Type> [c-d-1]) (Sub8  <x.Type> x (Const8  <x.Type> [d+1])))
    
    // Canonicalize x-const to x+(-const)
    (Sub64 x (Const64 <t> [c])) && x.Op != OpConst64 => (Add64 (Const64 <t> [-c]) x)
    (Sub32 x (Const32 <t> [c])) && x.Op != OpConst32 => (Add32 (Const32 <t> [-c]) x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	return nil
    }
    func (t *testRESTStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    func (t *testRESTStrategy) Canonicalize(obj runtime.Object) {}
    
    func NewTestGenericStoreRegistry(t *testing.T) (factory.DestroyFunc, *Store) {
    	return newTestGenericStoreRegistry(t, scheme, false)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (RORW x (MOVDconst [c])) => (RORWconst x [c&31])
    
    (ADDSflags x (MOVDconst [c]))  => (ADDSconstflags [c] x)
    
    (ADDconst [c] y) && c < 0 => (SUBconst [-c] y)
    
    // Canonicalize the order of arguments to comparisons - helps with CSE.
    ((CMP|CMPW) x y) && canonLessThan(x,y) => (InvertFlags ((CMP|CMPW) y x))
    
    // mul-neg => mneg
    (NEG  (MUL  x y)) => (MNEG  x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        if (!binary_op || binary_op->getNumOperands() != 2) return failure();
        // We only handle the cases the RHS is a scalar.
        // TODO(fengliuai): Currently the canonicalizer pass couldn't guarantee that
        // the constant operands are on the RHS, we need to consider LHS constant
        // operand if necessary.
        DenseFPElementsAttr cst;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top