Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rngTap (0.34 sec)

  1. src/math/rand/gen_cooked.go

    			u ^= int64(x) << 10
    			x = seedrand(x)
    			u ^= int64(x)
    			rngVec[i] = u
    		}
    	}
    }
    
    func vrand() int64 {
    	rngTap--
    	if rngTap < 0 {
    		rngTap += length
    	}
    	rngFeed--
    	if rngFeed < 0 {
    		rngFeed += length
    	}
    	x := (rngVec[rngFeed] + rngVec[rngTap])
    	rngVec[rngFeed] = x
    	return x
    }
    
    func main() {
    	srand(1)
    	for i := uint64(0); i < 7.8e12; i++ {
    		vrand()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc

                           }) {}
    
      LogicalResult matchAndRewrite(Operation *op,
                                    PatternRewriter &rewriter) const override {
        auto rng_op = cast<RngReadAndSkipOp>(op);
    
        DenseIntElementsAttr alg_constant;
        if (!matchPattern(rng_op.getAlg(), m_Constant(&alg_constant))) {
          return rewriter.notifyMatchFailure(
              op, "unable to determine algorithm statically");
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top