Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 124 for permutation (0.19 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. src/math/rand/example_test.go

    	show("Intn(10)", r.Intn(10), r.Intn(10), r.Intn(10))
    	show("Int31n(10)", r.Int31n(10), r.Int31n(10), r.Int31n(10))
    	show("Int63n(10)", r.Int63n(10), r.Int63n(10), r.Int63n(10))
    
    	// Perm generates a random permutation of the numbers [0, n).
    	show("Perm", r.Perm(5), r.Perm(5), r.Perm(5))
    	// Output:
    	// Float32     0.2635776           0.6358173           0.6718283
    	// Float64     0.628605430454327   0.4504798828572669  0.9562755949377957
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. src/cmd/internal/notsha256/sha256block_ppc64x.s

    #define R_x110	R27
    
    
    // V0-V7 are A-H
    // V8-V23 are used for the message schedule
    #define KI	V24
    #define FUNC	V25
    #define S0	V26
    #define S1	V27
    #define s0	V28
    #define s1	V29
    #define LEMASK	V31 // Permutation control register for little endian
    
    // 4 copies of each Kt, to fill all 4 words of a vector register
    DATA  ·kcon+0x000(SB)/8, $0x428a2f98428a2f98
    DATA  ·kcon+0x008(SB)/8, $0x428a2f98428a2f98
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go

    // Seed seeds the rng with the provided seed.
    func Seed(seed int64) {
    	rng.Lock()
    	defer rng.Unlock()
    
    	rng.rand = rand.New(rand.NewSource(seed))
    }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n)
    // from the default Source.
    func Perm(n int) []int {
    	rng.Lock()
    	defer rng.Unlock()
    	return rng.rand.Perm(n)
    }
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 11 11:02:01 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/TaskOrderSpecs.java

    import java.util.Set;
    
    /**
     * Provides common assertions for querying task order.
     *
     * An 'any' rule asserts that all of the specified tasks occur in any order.
     *
     * any(':a', ':b', ':c') would match on any permutation of ':a', ':b', ':c'.
     *
     * An 'exact' rule asserts that all of the specified tasks occur in the order
     * provided.  Note that other tasks may appear - it only verifies that the
     * given tasks occur in order.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

      });
    
      // Sorts the retvals by name so the order is deterministic.
      std::sort(retvals.begin(), retvals.end(),
                [](Node* a, Node* b) { return a->name() < b->name(); });
    
      // Computes the permutation to produce the correct argument order, and update
      // the argument indices.
      int variable_start_index = num_args;
      for (int i = 0; i < num_args; ++i) {
        int index;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. src/math/rand/v2/example_test.go

    	show("IntN(10)", r.IntN(10), r.IntN(10), r.IntN(10))
    	show("Int32N(10)", r.Int32N(10), r.Int32N(10), r.Int32N(10))
    	show("Int64N(10)", r.Int64N(10), r.Int64N(10), r.Int64N(10))
    
    	// Perm generates a random permutation of the numbers [0, n).
    	show("Perm", r.Perm(5), r.Perm(5), r.Perm(5))
    	// Output:
    	// Float32     0.95955694          0.8076733            0.8135684
    	// Float64     0.4297927436037299  0.797802349388613    0.3883664855410056
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. 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)
Back to top