Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for permutation (0.17 sec)

  1. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

              PushTransposeThroughEwisePass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PushTransposeThroughEwisePass)
      void runOnOperation() override;
    };
    
    // Compute the permutation that would take `arr` to the identity.
    llvm::SmallVector<int32_t> InvertPermutation(llvm::SmallVector<int32_t> arr) {
      llvm::SmallVector<int32_t> inverse_arr(arr.size());
      for (int32_t i = 0; i < arr.size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/webhook/webhook.go

    	for rev := range revisions {
    		for _, base := range getObjectLabels() {
    			base[label.IoIstioRev.Name] = rev
    			objectLabels = append(objectLabels, base)
    		}
    	}
    
    	// For each permutation, we check which webhooks it matches. It must match exactly 0 or 1!
    	for _, nl := range namespaceLabels {
    		for _, ol := range objectLabels {
    			matches := sets.New[string]()
    			for name, whs := range webhooks {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

        return;
      }
      if (const auto* op = op_union.AsStablehloTransposeOptions()) {
        if (!op->permutation.empty()) {
          attributes.emplace_back(builder.getNamedAttr(
              "permutation",
              BuildVhloTensorV1Attr({static_cast<int64_t>(op->permutation.size())},
                                    op->permutation, builder)));
        }
        return;
      }
      if (const auto* op = op_union.AsStablehloRngBitGeneratorOptions()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/defer_activation_transpose.mlir

    // CHECK: %[[TRANSPOSE_1:.+]] = stablehlo.transpose
    // CHECK: return %[[TRANSPOSE_1]]
    
    // -----
    
    // [No change] Tests that the activation transpose whose permutation is not
    // `[0, 3, 1, 2]` is not deferred.
    
    // CHECK-LABEL: add_with_activation_transpose_permutation_mismatch
    func.func @add_with_activation_transpose_permutation_mismatch(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. src/math/rand/v2/rand.go

    	// Shuffle really ought not be called with n that doesn't fit in 32 bits.
    	// Not only will it take a very long time, but with 2³¹! possible permutations,
    	// there's no way that any PRNG can have a big enough internal state to
    	// generate even a minuscule percentage of the possible permutations.
    	// Nevertheless, the right API signature accepts an int n, so handle it as best we can.
    	for i := n - 1; i > 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/schema/schema.fbs

      //     ..., dn-1). For example, a 2-D matrix stored in row-major order would
      //     have traversal_order = (d0, d1).
      //   - if block sparse with a k-dimensional block (0 <= k <= n), the
      //     traversal_order has n + k elements. The first n elements are still a
      //     permutation of (d0, ..., dn-1). The lask k elements are a permutation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    template <class Op>
    static LogicalResult InferenceFoldOperandsPermutation(
        ArrayRef<int64_t> permutation, Op* op) {
      // FusedBatchNorm in training mode is a layout sentitive operation, and should
      // have already assigned an optimal data format.
      if (op->getIsTraining()) return failure();
      return ::mlir::TF::FoldOperandsPermutation(permutation, op);
    }
    
    template <class Op>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/schema/schema_v3b.fbs

      //     ..., dn-1). For example, a 2-D matrix stored in row-major order would
      //     have traversal_order = (d0, d1).
      //   - if block sparse with a k-dimensional block (0 <= k <= n), the
      //     traversal_order has n + k elements. The first n elements are still a
      //     permutation of (d0, ..., dn-1). The lask k elements are a permutation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 14:28:27 UTC 2024
    - 30K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    def : Pat<(TF_CastOp $arg, ConstBoolAttrFalse), (MHLO_ConvertOp $arg)>;
    
    def : Pat<(TF_TransposeOp:$res $arg, (ConstantLikeMatcher ElementsAttr:$permutation)),
              (MHLO_TransposeOp $arg, (CastElementsToI64Elements $permutation))>;
    
    
    // Lowering these ops with static shape to mhlo.reshape
    foreach TfOp = [TF_ExpandDimsOp, TF_ReshapeOp, TF_SqueezeOp, ] in {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  10. src/math/rand/rand.go

    	// Shuffle really ought not be called with n that doesn't fit in 32 bits.
    	// Not only will it take a very long time, but with 2³¹! possible permutations,
    	// there's no way that any PRNG can have a big enough internal state to
    	// generate even a minuscule percentage of the possible permutations.
    	// Nevertheless, the right API signature accepts an int n, so handle it as best we can.
    	i := n - 1
    	for ; i > 1<<31-1-1; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top