Skip to content

Conversation

jansel
Copy link
Contributor

@jansel jansel commented Jun 13, 2021

Some minor quality of life improvements for the NNC python bindings:

  • expose call_raw()
  • support passing integers to call() (for dynamic shapes)
  • implicit conversions to cleanup [BufferArg(x) for x in [A, B, C]] into just [A, B, C]
  • don't silently default to "ir_eval" for unknown mode (e.g. "LLVM")

@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue cla signed labels Jun 13, 2021
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 13, 2021

💊 CI failures summary and remediations

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


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

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 to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

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

@jansel jansel requested a review from ZolotukhinM June 13, 2021 17:25
@jansel jansel force-pushed the tecallarg202106 branch from 4d47df4 to 1813ebb Compare June 13, 2021 18:27
@facebook-github-bot
Copy link
Contributor

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

Copy link

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

Neat, thanks!

@facebook-github-bot
Copy link
Contributor

@jansel merged this pull request in 3d90c82.

@jansel jansel deleted the tecallarg202106 branch June 16, 2021 03:39
facebook-github-bot pushed a commit that referenced this pull request Jun 17, 2021
Summary:
A few more quality of life improvements for NNC's python bindings:
- Use standard `torch.dtype`s (rather than `te.Dtype`)
- Make names optional (they don't seem to matter)
- Make shapes optional
- A few implicit conversions to make code cleaner

Followup to #59920

Pull Request resolved: #60058

Reviewed By: bertmaher

Differential Revision: D29151953

Pulled By: jansel

fbshipit-source-id: c8286e329eb4ee3921ca0786e17248cf6a898bd8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants