Skip to content

Commit

Permalink
update new tf types
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdamien committed Jan 4, 2016
1 parent c17a5a1 commit ce5f4de
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/alexnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def alex_net(_X, _weights, _biases, _dropout):

# Evaluate model
correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))

# Initializing the variables
init = tf.initialize_all_variables()
Expand Down
2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/convolutional_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def conv_net(_X, _weights, _biases, _dropout):

# Evaluate model
correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))

# Initializing the variables
init = tf.initialize_all_variables()
Expand Down
2 changes: 1 addition & 1 deletion examples/3 - Neural Networks/recurrent_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def RNN(_X, _istate, _weights, _biases):

# Evaluate model
correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))

# Initializing the variables
init = tf.initialize_all_variables()
Expand Down
2 changes: 1 addition & 1 deletion notebooks/3 - Neural Networks/alexnet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"source": [
"# Evaluate model\n",
"correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))\n",
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))"
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/3 - Neural Networks/convolutional_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"source": [
"# Evaluate model\n",
"correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))\n",
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))"
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/3 - Neural Networks/reccurent_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"\n",
"# Evaluate model\n",
"correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))\n",
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.types.float32))"
"accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))"
]
},
{
Expand Down

0 comments on commit ce5f4de

Please sign in to comment.