Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add StackSummary reducer only for tensorflow < 2.5 #20

Merged
merged 3 commits into from
May 19, 2021
Merged

Conversation

AlvinMax
Copy link
Collaborator

No description provided.

@AlvinMax AlvinMax requested a review from faucct May 19, 2021 11:24
if tf.__version__ < '2.5':
from tensorflow.python._tf_stack import StackSummary
dispatch[StackSummary] = self._reduce_without_args(StackSummary)
except ModuleNotFoundError:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лови все исключения, но залогируй их куда-нибудь.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Остальные и так залогируются, а юзер получит сообщение, что стоит к нам обратиться

Copy link
Collaborator

Choose a reason for hiding this comment

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

Остальные уронят коммит ячейки, нет?

Copy link
Collaborator Author

@AlvinMax AlvinMax May 19, 2021

Choose a reason for hiding this comment

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

ну мы иначе не узнаем о таких случаях)

@AlvinMax AlvinMax merged commit 4650fa3 into master May 19, 2021
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.

2 participants