Added OptionalArrayRef template class#64084
Added OptionalArrayRef template class#64084heitorschueroff wants to merge 2 commits intogh/heitorschueroff/18/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit fdea43b (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 to the (internal) Dr. CI Users group. |
closes #63645 **TODO** - [ ] add non-member functions - [ ] add tests - [ ] update codegen to map []? to OptionalArrayRef [ghstack-poisoned]
|
we discussed this in person and I was hoping we could simplify the optional implementation to remove some of the unnecessary genericism. Hopefully doing this is not too high risk. |
|
@gchanan says you can skip reimplementing all of optional by just storing an |
That would work for now, but once we start using |
|
Oh right, the optimization. Carry on then |
|
Hi @heitorschueroff! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
This PR uses the `OptionalArrayRef` template class that was drafted in #64084. Fixes #44409 Pull Request resolved: #70864 Approved by: https://github.com/ezyang
Summary: This PR uses the `OptionalArrayRef` template class that was drafted in #64084. Fixes #44409 Pull Request resolved: #70864 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/5375b2e994ee666996a47526c7f9629e85acfc54 Reviewed By: bdhirsh Differential Revision: D34602980 fbshipit-source-id: f920e82616c05a36fe7fc8309a787f6f62b03ad9
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack:
closes #63645
TODO