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

Correctly mark unannotated NamedTuple field to be inferred TensorType #46969

Closed
wants to merge 1 commit into from

Conversation

tugsbayasgalan
Copy link
Contributor

@tugsbayasgalan tugsbayasgalan commented Oct 28, 2020

Summary: If there is no annotation given, we want to show users that the type is inferred

Test Plan: Added a new test case that throws an error with the expected error message

Reviewers: Yanan Cao

Subscribers:

Tasks:

Tags:

Fixes #46326

@tugsbayasgalan tugsbayasgalan changed the title More descriptive error message for inferred types #46326 More descriptive error message for inferred types Oct 28, 2020
@dr-ci
Copy link

dr-ci bot commented Oct 28, 2020

💊 CI failures summary and remediations

As of commit b059224 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 21 times.

Copy link
Contributor

@gmagogsfm gmagogsfm left a comment

Choose a reason for hiding this comment

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

Nice work, just a few minor comments

torch/_jit_internal.py Outdated Show resolved Hide resolved
test/test_jit.py Outdated Show resolved Hide resolved
Summary: If there is no annotation given, we want to show users that the type is inferred

Test Plan: Added a new test case that throws an error with the expected error message

Reviewers: Yanan Cao

Subscribers:

Tasks: pytorch#46326

Tags:
@gmagogsfm gmagogsfm changed the title More descriptive error message for inferred types Correctly mark unannotated NamedTuple field to be inferred TensorType Oct 29, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@gmagogsfm has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@codecov
Copy link

codecov bot commented Oct 29, 2020

Codecov Report

Merging #46969 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #46969   +/-   ##
=======================================
  Coverage   68.88%   68.88%           
=======================================
  Files         435      435           
  Lines       56309    56309           
=======================================
  Hits        38790    38790           
  Misses      17519    17519           

@facebook-github-bot
Copy link
Contributor

@gmagogsfm merged this pull request in fee585b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[JIT] Unannotated NamedTuple Type should use TensorType::getInferred()
3 participants