Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement