lightning-thunder icon indicating copy to clipboard operation
lightning-thunder copied to clipboard

Implement clone()

Open tfogal opened this issue 1 year ago • 4 comments

Fixes #342.

  • [x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • [x] Did you read the contributor guideline, Pull Request section?
  • [x] Did you make sure to update the docs?
  • [x] Did you write any new necessary tests?

What does this PR do?

Fixes #342

PR review

Anyone in the community is free to review the PR once the tests have passed. If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Always ;-)

tfogal avatar May 17 '24 00:05 tfogal

The failures are distributed notebook flakiness; unrelated, so marking ready for review.

I didn't understand the #342 comment about not making this a symbol. Without the @torchsymbol decorator, clone calls won't map to this implementation, of course. Maybe someone could help educate me on how else this could be done?

tfogal avatar May 17 '24 16:05 tfogal

The test failures are for distributed things: https://dev.azure.com/Lightning-AI/lightning/_build/results?buildId=202766&view=logs&j=b97dbf6d-98bd-5b68-7c01-878b39c3da28&t=3c72ede2-92c1-5cd2-2bac-ad2411af2aea&l=306 which seem unrelated. Let's try merging main into this...

tfogal avatar May 17 '24 22:05 tfogal

triage review — just return a for the impl seems OK for now — we can follow-up if that confuses practitioners or we want more clarity

mruberry avatar May 20 '24 19:05 mruberry

The failures are just the distributed tests failing, issue #432. This is ready for re-review / merging.

tfogal avatar May 20 '24 21:05 tfogal

poke @mruberry @t-vi for review/merging

tfogal avatar May 24 '24 23:05 tfogal