Skip to content

Conversation

@nkaretnikov
Copy link
Collaborator

@nkaretnikov nkaretnikov commented Jun 19, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 19, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/103821

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit da9b41f:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

nkaretnikov added a commit that referenced this pull request Jun 19, 2023
ghstack-source-id: 23bbda0
Pull Request resolved: #103821
@nkaretnikov nkaretnikov added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/inductor ciflow/slow labels Jun 19, 2023
@nkaretnikov
Copy link
Collaborator Author

Keeping the skips in make_fx_failures in test_proxy_tensor.py because of value mismatch during testing. It seems it's due to nondeterminism caused by repeated indices (as specified in the docs).

TORCH_CHECK(
output_size.size() == 2,
"There should be exactly two elements (width, height) in output_size, but got ", output_size.size(), " elements.");
"There should be exactly two elements (height, width) in output_size, but got ", output_size.size(), " elements.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Typo fix. Wrong order of elements.

.view_symint(size)
.gather(-1, indices_view)
.view(indices.sizes());
.view_symint(indices.sym_sizes());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For example, used in test_aot_autograd_symbolic_exhaustive_nn_functional_max_unpool1d_cpu_float32.

nkaretnikov added a commit that referenced this pull request Jun 24, 2023
ghstack-source-id: a6450c0
Pull Request resolved: #103821
from torch._ops import OpOverload
from torch._prims import _elementwise_meta, ELEMENTWISE_PRIM_TYPE_PROMOTION_KIND
from torch._prims_common import (
corresponding_complex_dtype,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These alerts are needed for, e.g.:

PYTORCH_TEST_WITH_INDUCTOR=1  python -bb test/test_torch.py -v --use-pytest --import-slow-tests --import-disabled-tests -k test_nondeterministic_alert_MaxUnpool1d_cuda_float16 -v --capture=no

),
)

self = self_.contiguous()
Copy link
Collaborator Author

@nkaretnikov nkaretnikov Jun 24, 2023

Choose a reason for hiding this comment

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

In core, this uses suggest_memory_format, so slightly wrong. But is this even necessary? Will investigate.

UPD: But it's only for the 2d variant. I'm going to ignore this for now as all tests pass.

else:
nbatch = self.size(0)
nchannels = self.size(1)
result = self.new_empty((nbatch, nchannels, oheight, owidth))
Copy link
Collaborator Author

@nkaretnikov nkaretnikov Jun 24, 2023

Choose a reason for hiding this comment

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

This takes a memory_format argument in core.

UPD: But it's only for the 2d variant. I'm going to ignore this for now as all tests pass.

f"determinism just for this operation, or you can use the "
f"'warn_only=True' option, if that's acceptable for your application. "
f"You can also file an issue at https://github.com/pytorch/pytorch/issues "
f"to help us prioritize adding deterministic support for this operation."))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Context::alertNotDeterministic in core.

@nkaretnikov nkaretnikov removed ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/slow labels Jun 25, 2023
@nkaretnikov nkaretnikov marked this pull request as ready for review June 25, 2023 21:34
@nkaretnikov nkaretnikov requested a review from ezyang as a code owner June 25, 2023 21:34
Copy link
Collaborator

@Chillee Chillee left a comment

Choose a reason for hiding this comment

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

LGTM

@facebook-github-bot facebook-github-bot deleted the gh/nkaretnikov/141/head branch July 4, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants