Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tfmpl/samples/sgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def beale(x, y):
'''Beale surface for optimization tests.'''
with tf.name_scope('beale', [x, y]):
with tf.name_scope('beale', values=[x, y]):
return (1.5 - x + x*y)**2 + (2.25 - x + x*y**2)**2 + (2.625 - x + x*y**3)**2

# List of optimizers to compare
Expand Down Expand Up @@ -102,4 +102,4 @@ def draw(xy, z):
summary = sess.run(all_summaries)
writer.add_summary(summary, global_step=i)
writer.flush()
sess.run(train)
sess.run(train)