Skip to content

Conversation

@luomai
Copy link
Member

@luomai luomai commented Mar 9, 2018

No description provided.

@luomai luomai requested review from lgarithm and zsdonghao March 9, 2018 15:36
"""
LayersConfig._layer_name_list = []
raise NotImplementedError('TensorLayer relies on TensorFlow to check naming. Remove this function call.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we not to raise exception here to provide better user experience.
We can do something like
logging.info('this method is DEPRECATED and has no effect, please remove it from your code.')
In that way we can inform users without crashing their code.

@tensorlayer tensorlayer deleted a comment Mar 9, 2018
"""
LayersConfig._name_reuse = enable
logging.warning('this method is DEPRECATED and has no effect, please remove it from your code.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually Hao was right, use pass should be enough, because TensorFlow would log the warning.
And I think this code will crash because we don't have a warning method on logging yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the warning method was added later, then it's fine here.

@tensorlayer tensorlayer deleted a comment Mar 9, 2018
@tensorlayer tensorlayer deleted a comment Mar 9, 2018

# train the network
tl.utils.fit(
sess, network, train_op, cost, X_train, y_train, x, y_, acc=acc, batch_size=500, n_epoch=3, print_freq=1, X_val=X_val, y_val=y_val, eval_train=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we reduce the model size instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, just do

@tensorlayer tensorlayer deleted a comment Mar 9, 2018
@tensorlayer tensorlayer deleted a comment Mar 9, 2018
@zsdonghao zsdonghao merged commit 4303979 into master Mar 9, 2018
@luomai luomai deleted the remove-lobels branch March 11, 2018 03:26
luomai added a commit that referenced this pull request Nov 21, 2018
* fixed bug of time distributed layer and release 2 tests

* speed up test mnist

* fixed test file name

* remove unused code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants