Skip to content

Instantly share code, notes, and snippets.

@aonotas
Last active April 26, 2017 07:59
Show Gist options
  • Save aonotas/2f3f20f6989bc391b2b1d43db6b5499c to your computer and use it in GitHub Desktop.
Save aonotas/2f3f20f6989bc391b2b1d43db6b5499c to your computer and use it in GitHub Desktop.
import logging
logger = logging.getLogger(__name__)
from chainer import cuda
def main():
logging.basicConfig(
format='%(asctime)s : %(threadName)s : %(levelname)s : %(message)s',
level=logging.INFO)
xp = cuda.cupy
cuda.get_device(0).use()
xp.random.seed(1234)
a = xp.random.random((10, 10))
b = a[0, 0] == a
print b
logging.info('a')
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment