"src/vscode:/vscode.git/clone" did not exist on "c3a15437f85bacde9e80b8ec45e062d4a429d9cd"
Commit 9cd18941 authored by Chris Shallue's avatar Chris Shallue Committed by GitHub
Browse files

Merge pull request #2184 from cclauss/patch-14

skip_thoughts: from six.moves import range for Python 3
parents a03b3638 b6ebdd69
......@@ -22,6 +22,8 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import range
import math
import os.path
import time
......@@ -75,7 +77,7 @@ def evaluate_model(sess, losses, weights, num_batches, global_step,
start_time = time.time()
sum_losses = 0.0
sum_weights = 0.0
for i in xrange(num_batches):
for i in range(num_batches):
batch_losses, batch_weights = sess.run([losses, weights])
sum_losses += np.sum(batch_losses * batch_weights)
sum_weights += np.sum(batch_weights)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment