View gist:99321013afe2c84010527f6d05ac2fff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afawfasxfasf |
View gist:85759547ab516babdac5f8c0e017c63a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observation | |
(8, 5, 2) | |
[[[6.47 6.68 ] | |
[8.59 6.85 ] | |
[1.76 4.89 ] | |
[1.6 4.13 ] | |
[9.09 6.02 ]] | |
[[5.8599997 6.8199997] | |
[7.78 6.8399997] |
View cuda_test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
if tf.test.gpu_device_name(): | |
print('Default GPU Device: {}'.format(tf.test.gpu_device_name())) | |
else: | |
print("Please install GPU version of TF") | |
import tensorflow as tf | |
with tf.device('/gpu:0'): |
View gist:d846b5ea72e00517728f7954613f019c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
by adding | |
print("="*40) | |
print("obs") | |
print(type(obs)) | |
print(obs) | |
print("="*40) | |
print("action") | |
print(type(action)) | |
print(action) |