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

Enable LogLevel.GRAPH in Python API #501

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

letian-jiang
Copy link
Contributor

@letian-jiang letian-jiang commented Jun 17, 2021

Description

Add certain codes to enable LogLevel.GRAPH in python.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas and hacks

@letian-jiang letian-jiang force-pushed the enable_kgraph_in_python branch from 6bbc3f1 to d03b476 Compare June 17, 2021 07:56
@@ -26,6 +27,8 @@ def _to_internal_level(external) -> LogLevel:
return LogLevel.INFO
if external == Level.Debug:
return LogLevel.DEBUG
if external == Level.Graph:
return LogLevel.GRAPH
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably add an exception or something here if the program gets this far into the cases.

@narendasan narendasan merged commit b99ebb2 into pytorch:master Jul 28, 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