You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following command will update Theano and Numpy/Scipy (warning bellow):
104
+
sudo pip install --upgrade theano
100
105
101
106
"""
102
107
103
108
"""
104
-
Testing function to check whether your computations have been made on CPU or GPU.
109
+
Below, there is a testing function to check whether your computations have been made on CPU or GPU.
105
110
If the result is 'Used the cpu' and you want to have it in gpu, do the following:
106
111
1) install theano:
107
112
sudo python3.5 -m pip install Theano
@@ -119,7 +124,6 @@
119
124
120
125
121
126
"""
122
-
123
127
deftestTheano():
124
128
fromtheanoimportfunction, config, shared, sandbox
125
129
importtheano.tensorasT
@@ -143,21 +147,64 @@ def testTheano():
143
147
print('Used the cpu')
144
148
else:
145
149
print('Used the gpu')
146
-
147
150
# Perform check:
148
-
testTheano()
151
+
#testTheano()
149
152
150
153
151
154
# ----------------------
152
155
# - network3.py example:
153
156
importnetwork3
157
+
fromnetwork3importNetwork, ConvPoolLayer, FullyConnectedLayer, SoftmaxLayer# softmax plus log-likelihood cost is more common in modern image classification networks.
154
158
155
-
'''
156
-
from network3 import ConvPoolLayer, FullyConnectedLayer, SoftmaxLayer
0 commit comments