[go: nahoru, domu]

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

make attrs argument in runKernel optional #4365

Merged
merged 5 commits into from
Dec 7, 2020
Merged

Conversation

tafsiri
Copy link
Contributor
@tafsiri tafsiri commented Dec 7, 2020

And improve the typing of runKernel.

Context: This is part one of a much larger PR (I'm breaking that PR up into a set of smaller PRs). This step includes changes to runKernel to enable to changes to all the other ops present in that PR.

In particular this change accommodates kernels that have no attrs. It also changes the typing to reduce the overall number of casts to T/T[]/Tensor/Tensor[] in ops. As is visible in the main PR, this doesn't eliminate all casts but will overall have less casting than keeping the types as is. Along with the change to engine this PR includes updates to existing uses of runKernel

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@google-cla google-cla bot added the cla: yes label Dec 7, 2020
@tafsiri tafsiri changed the title make attrs argument in runKernel optional make attrs argument in runKernel optional (switch to runKernel part 1) Dec 7, 2020
@tafsiri
Copy link
Contributor Author
tafsiri commented Dec 7, 2020

Also after this one merges I should be able to submit more of the PRs for review in parallel.

Copy link
Collaborator
@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you Yannick!

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @annxingyuan and @lina128)

@tafsiri tafsiri changed the title make attrs argument in runKernel optional (switch to runKernel part 1) make attrs argument in runKernel optional Dec 7, 2020
@tafsiri tafsiri merged commit 81fbe04 into master Dec 7, 2020
@tafsiri tafsiri deleted the runkernel-part-one branch December 7, 2020 21:26
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.

None yet

2 participants