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
Which version of tensorflow has this software been tested against?
When trying to install this software package I ran into the following : WARNING:tensorflow:From build/bdist.linux-x86_64/egg/dietnet/network.py:135: mean_squared_error (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.mean_squared_error instead.
Traceback (most recent call last):
File "/ri/shared/modules/dietnet/Jun17_2017/bin/dietnet", line 11, in
load_entry_point('dietnet==0.1', 'console_scripts', 'dietnet')()
File "build/bdist.linux-x86_64/egg/dietnet/main.py", line 121, in main
File "build/bdist.linux-x86_64/egg/dietnet/train.py", line 47, in train
File "build/bdist.linux-x86_64/egg/dietnet/network.py", line 135, in diet
File "/ri/shared/modules/dietnet/Jun17_2017/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 136, in new_func
return func(*args, **kwargs)
TypeError: mean_squared_error() got an unexpected keyword argument 'weight'
Which version of tensorflow has this software been tested against?
When trying to install this software package I ran into the following : WARNING:tensorflow:From build/bdist.linux-x86_64/egg/dietnet/network.py:135: mean_squared_error (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.mean_squared_error instead.
Traceback (most recent call last):
File "/ri/shared/modules/dietnet/Jun17_2017/bin/dietnet", line 11, in
load_entry_point('dietnet==0.1', 'console_scripts', 'dietnet')()
File "build/bdist.linux-x86_64/egg/dietnet/main.py", line 121, in main
File "build/bdist.linux-x86_64/egg/dietnet/train.py", line 47, in train
File "build/bdist.linux-x86_64/egg/dietnet/network.py", line 135, in diet
File "/ri/shared/modules/dietnet/Jun17_2017/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 136, in new_func
return func(*args, **kwargs)
TypeError: mean_squared_error() got an unexpected keyword argument 'weight'
Looking at current versions of tensorflow :
https://www.tensorflow.org/api_docs/python/tf/losses/mean_squared_error
mean_squared_error(
labels,
predictions,
weights=1.0,
scope=None,
loss_collection=tf.GraphKeys.LOSSES,
reduction=Reduction.SUM_BY_NONZERO_WEIGHTS
)
On a whim I tried modifying
mean_squared_loss = slim.losses.mean_squared_error(xhat,
inputs,
weight=gamma)
to
mean_squared_loss = slim.losses.mean_squared_error(xhat,
inputs,
weights=gamma)
And it seems to work.
.
The text was updated successfully, but these errors were encountered: