Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for SHUFFLE (0.1 sec)

  1. src/reflect/visiblefields.go

    	// the common case that there are no hidden fields.
    	j := 0
    	for i := range w.fields {
    		f := &w.fields[i]
    		if f.Name == "" {
    			continue
    		}
    		if i != j {
    			// A field has been removed. We need to shuffle
    			// all the subsequent elements up.
    			w.fields[j] = *f
    		}
    		j++
    	}
    	return w.fields[:j]
    }
    
    type visibleFieldsWalker struct {
    	byName   map[string]int
    	visiting map[Type]bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. api/go1.22.txt

    pkg math/rand/v2, func NewZipf(*Rand, float64, float64, uint64) *Zipf #61716
    pkg math/rand/v2, func NormFloat64() float64 #61716
    pkg math/rand/v2, func Perm(int) []int #61716
    pkg math/rand/v2, func Shuffle(int, func(int, int)) #61716
    pkg math/rand/v2, func Uint32() uint32 #61716
    pkg math/rand/v2, func Uint32N(uint32) uint32 #61716
    pkg math/rand/v2, func Uint64() uint64 #61716
    pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. tests/tests_test.go

    	var err error
    	allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}, &Coupon{}, &CouponProduct{}, &Order{}, &Parent{}, &Child{}, &Tools{}}
    	rand.Seed(time.Now().UnixNano())
    	rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] })
    
    	DB.Migrator().DropTable("user_friends", "user_speaks")
    
    	if err = DB.Migrator().DropTable(allModels...); err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/testing/fstest/testfs_test.go

    	}
    	return &shuffledFile{File: f}, nil
    }
    
    type shuffledFile struct{ fs.File }
    
    func (f *shuffledFile) ReadDir(n int) ([]fs.DirEntry, error) {
    	dirents, err := f.File.(fs.ReadDirFile).ReadDir(n)
    	// Shuffle in a deterministic way, all we care about is making sure that the
    	// list of directory entries is not is the lexicographic order.
    	//
    	// We do this to make sure that the TestFS test suite is not affected by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/internal/bytealg/indexbyte_amd64.s

    	MOVB c+16(FP), AL
    	LEAQ ret+24(FP), R8
    	JMP  indexbytebody<>(SB)
    
    // input:
    //   SI: data
    //   BX: data len
    //   AL: byte sought
    //   R8: address to put result
    TEXT	indexbytebody<>(SB), NOSPLIT, $0
    	// Shuffle X0 around so that each byte contains
    	// the character we're looking for.
    	MOVD AX, X0
    	PUNPCKLBW X0, X0
    	PUNPCKLBW X0, X0
    	PSHUFL $0, X0, X0
    
    	CMPQ BX, $16
    	JLT small
    
    	MOVQ SI, DI
    
    	CMPQ BX, $32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 19:06:01 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py

      os.environ[
          'TF_MLIR_TFR_LIB_DIR'] = 'tensorflow/compiler/mlir/tfr/examples/mnist'
    
      ds_train = tfds.load('mnist', split='train', shuffle_files=True)
      ds_train = ds_train.shuffle(1024).batch(batch_size).prefetch(64)
      ds_train = strategy.experimental_distribute_dataset(ds_train)
    
      with strategy.scope():
        # Create an mnist float model with the specified float state.
        model = FloatModel()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 20 03:05:18 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  7. src/internal/bytealg/count_amd64.s

    	JMP	countbody<>(SB)
    
    // input:
    //   SI: data
    //   BX: data len
    //   AL: byte sought
    //   R8: address to put result
    // This function requires the POPCNT instruction.
    TEXT countbody<>(SB),NOSPLIT,$0
    	// Shuffle X0 around so that each byte contains
    	// the character we're looking for.
    	MOVD AX, X0
    	PUNPCKLBW X0, X0
    	PUNPCKLBW X0, X0
    	PSHUFL $0, X0, X0
    
    	CMPQ BX, $16
    	JLT small
    
    	MOVQ $0, R12 // Accumulator
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:54:43 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. pkg/kubelet/clustertrustbundle/clustertrustbundle_manager.go

    			}
    			trustAnchorSet = trustAnchorSet.Insert(string(b.Bytes))
    		}
    	}
    
    	// Give the list a stable ordering that changes each time Kubelet restarts.
    	trustAnchorList := sets.List(trustAnchorSet)
    	rand.Shuffle(len(trustAnchorList), func(i, j int) {
    		trustAnchorList[i], trustAnchorList[j] = trustAnchorList[j], trustAnchorList[i]
    	})
    
    	pemTrustAnchors := []byte{}
    	for _, ta := range trustAnchorList {
    		b := &pem.Block{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. src/internal/fuzz/mutators_byteslice.go

    	n := m.chooseLen(len(b) - dst)
    	if n <= 2 {
    		return nil
    	}
    	// Start at the end of the range, and iterate backwards
    	// to dst, swapping each element with another element in
    	// dst:dst+n (Fisher-Yates shuffle).
    	for i := n - 1; i > 0; i-- {
    		j := m.rand(i + 1)
    		b[dst+i], b[dst+j] = b[dst+j], b[dst+i]
    	}
    	return b
    }
    
    // byteSliceSwapBytes swaps two chunks of bytes in b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 7.7K bytes
    - Viewed (0)
Back to top