Fix scalar type resolution for optional tensor#94427
Fix scalar type resolution for optional tensor#94427thiagocrepaldi wants to merge 1 commit intopytorch:masterfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/94427
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit f0c231c: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorch merge -g |
|
@pytorchbot merge -g |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 2 mandatory check(s) failed (Rule Dig deeper by viewing the failures on hud Details for Dev Infra teamRaised by workflow job |
9d4b8fb to
e54369a
Compare
shubhambhokare1
left a comment
There was a problem hiding this comment.
LGTM! Fix lint issues?
e54369a to
f0c231c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@pytorchbot merge -f "Unrelated lint failure: python3: can't open file '/home/runner/work/pytorch/pytorch/.github/scripts/collect_ciflow_labels.py': [Errno 2] No such file or directory" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
When TorchScript Value has an optional tensor,
dtype()orscalarType()is not available and raise (by design).The symbolic
_op_with_optional_float_castmust check whether the tensor is otpional or not before calling the scalar type resolution API. This PR fixes that