Skip to content

Conversation

sergei-mironov
Copy link
Contributor

@sergei-mironov sergei-mironov commented Oct 1, 2019

Minor fix making error messages look more clear.

saberkun
saberkun previously approved these changes Oct 1, 2019
"""Implements build() for the layer."""
dtype = tf.as_dtype(self.dtype or tf.keras.backend.floatx())
if not (dtype.is_floating or dtype.is_complex):
raise TypeError("Unable to build `Dense` layer with non-floating point "
Copy link
Member

Choose a reason for hiding this comment

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

Could you help fix just these two lint errors?
official/nlp/bert_modeling.py:651: [C0301(line-too-long), ] Line too long (90/80)

official/nlp/bert_modeling.py:655: [C0301(line-too-long), ] Line too long (81/80)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I couldn't find pylint script or config, but I hope this particular errors shoud gone now.

Copy link
Member

@saberkun saberkun left a comment

Choose a reason for hiding this comment

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

Thanks!

@saberkun saberkun added the ready to pull ready to pull (create internal pr review and merge automatically) label Oct 3, 2019
tf-models-copybara-bot pushed a commit that referenced this pull request Oct 3, 2019
@tf-models-copybara-bot tf-models-copybara-bot merged commit da2d13b into tensorflow:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull ready to pull (create internal pr review and merge automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants