Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,364 for rend (0.05 sec)

  1. src/math/rand/rand.go

    // Read generates len(p) random bytes from the default [Source] and
    // writes them into p. It always returns len(p) and a nil error.
    // Read, unlike the [Rand.Read] method, is safe for concurrent use.
    //
    // Deprecated: For almost all use cases, [crypto/rand.Read] is more appropriate.
    // If a deterministic source is required, use [math/rand/v2.ChaCha8.Read].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    inline std::vector<int64_t> GetPaddedShape(ArrayRef<int64_t> old_shape,
                                               int new_dims) {
      std::vector<int64_t> new_shape(new_dims, 1);
      std::copy_backward(old_shape.begin(), old_shape.end(), new_shape.end());
      return new_shape;
    }
    
    // Helper method that given and 'current_index' representing
    // index in broadcasted tensor, get the index in the flat original tensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. src/runtime/rand.go

    	unlock(&globalRand.lock)
    }
    
    // rand32 is uint32(rand()), called from compiler-generated code.
    //
    //go:nosplit
    func rand32() uint32 {
    	return uint32(rand())
    }
    
    // rand returns a random uint64 from the per-m chacha8 state.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname rand
    func rand() uint64 {
    	// Note: We avoid acquirem here so that in the fast path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/cmd/trace/jsontrace.go

    		}
    		if a.Start != b.Start {
    			return cmp.Compare(aStart, bStart)
    		}
    		// Break ties with the end time.
    		aEnd, bEnd := parsed.endTime(), parsed.endTime()
    		if a.End != nil {
    			aEnd = a.End.Time()
    		}
    		if b.End != nil {
    			bEnd = b.End.Time()
    		}
    		return cmp.Compare(aEnd, bEnd)
    	})
    }
    
    func defaultGenOpts() *genOpts {
    	return &genOpts{
    		startTime: time.Duration(0),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      // rank of 2 (no batch dimension).
      SmallVector<int64_t, 2> new_filter_shape(filter_shape.rbegin(),
                                               filter_shape.rend());
    
      // Construct the value array of transposed filter. Assumes 2D matrix.
      SmallVector<int8_t> new_filter_values(filter_values.size(), /*Value=*/0);
      for (int i = 0; i < filter_shape[0]; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  6. src/crypto/rand/rand.go

    func batched(f func([]byte) error, readMax int) func([]byte) error {
    	return func(out []byte) error {
    		for len(out) > 0 {
    			read := len(out)
    			if read > readMax {
    				read = readMax
    			}
    			if err := f(out[:read]); err != nil {
    				return err
    			}
    			out = out[read:]
    		}
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:02:21 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/math/rand/v2/rand.go

    }
    
    // New returns a new Rand that uses random values from src
    // to generate other random values.
    func New(src Source) *Rand {
    	return &Rand{src: src}
    }
    
    // Int64 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) }
    
    // Uint32 returns a pseudo-random 32-bit value as a uint32.
    func (r *Rand) Uint32() uint32 { return uint32(r.src.Uint64() >> 32) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. src/crypto/internal/boring/rand.go

    //go:build boringcrypto && linux && (amd64 || arm64) && !android && !msan
    
    package boring
    
    // #include "goboringcrypto.h"
    import "C"
    import "unsafe"
    
    type randReader int
    
    func (randReader) Read(b []byte) (int, error) {
    	// Note: RAND_bytes should never fail; the return value exists only for historical reasons.
    	// We check it even so.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 696 bytes
    - Viewed (0)
  9. src/go/build/read.go

    					if r.eof {
    						r.syntaxError()
    					}
    					c, c1 = c1, r.readByteNoBuf()
    				}
    				startLine = false
    
    			case '/':
    				if startLine {
    					// Try to read this as a //go:embed comment.
    					for i := range goEmbed {
    						c = r.readByteNoBuf()
    						if c != goEmbed[i] {
    							goto SkipSlashSlash
    						}
    					}
    					c = r.readByteNoBuf()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modindex/read.go

    }
    
    var isTest = false
    
    // unprotect marks the end of a large section of code that accesses the index.
    // It should be used as:
    //
    //	defer unprotect(protect, &err)
    //
    // end looks for panics due to errCorrupt or bad mmap accesses.
    // When it finds them, it adds explanatory text, consumes the panic, and sets *errp instead.
    // If errp is nil, end adds the explanatory text but then calls base.Fatalf.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top