code: def test_GPUA_full_fill():
      # Make sure the whole sample buffer is filled.  Also make sure
      # large samples are consistent with CPU results.
  
      # This needs to be large to trigger the problem on GPU
      size = (10, 1000)
  
      R = MRG_RandomStreams(234)
      uni = R.uniform(size, nstreams=60 * 256)
      f_cpu = theano.function([], uni)
  
      rstate_gpu = gpuarray_shared_constructor(
          R.state_updates[-1][0].get_value()
      )
      new_rstate, sample = GPUA_mrg_uniform.new(
          rstate_gpu, ndim=None, dtype="float32", size=size
      )
      rstate_gpu.default_update = new_rstate
      f_gpu = theano.function([], sample, mode=mode)
  
      utt.assert_allclose(f_cpu(), f_gpu())
  
file_path: Theano/theano/gpuarray/tests/test_rng_mrg.py
imports: from __future__ import absolute_import, print_function, division
  import functools
  import numpy
  import theano
  from theano import change_flags, tensor
  from theano.sandbox import rng_mrg
  from theano.sandbox.rng_mrg import MRG_RandomStreams
  from theano.sandbox.tests.test_rng_mrg import java_samples, rng_mrg_overflow
  from theano.sandbox.tests.test_rng_mrg import test_f16_nonzero
  from theano.tests import unittest_tools
  from .config import mode_with_gpu
  from ..type import gpuarray_shared_constructor
  from ..rng_mrg import GPUA_mrg_uniform
label_desc: Use image node_id 3 for calling a global function with example usage: test_GPUA_full_fill() without return types