10000 Rprop does not work in MPS for noncontiguous tensors · Issue #118117 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rprop does not work in MPS for noncontiguous tensors #118117
Closed
@janeyx99

Description

@janeyx99

🐛 Describe the bug

RProp does not update noncontiguous params. I haven't dug into the why, but our simplest directional test case on test_forloop_goes_right_direction fails:

======================================================================
FAIL: test_forloop_goes_right_direction_contiguous_False_Rprop_mps_float32 (__main__.TestOptimRenewedMPS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/janeyx/pytorch/torch/testing/_internal/common_utils.py", line 2689, in wrapper
    method(*args, **kwargs)
  File "/Users/janeyx/pytorch/torch/testing/_internal/common_device_type.py", line 416, in instantiated_test
    result = test(self, **param_kwargs)
  File "/Users/janeyx/pytorch/torch/testing/_internal/common_utils.py", line 1366, in wrapper
    fn(*args, **kwargs)
  File "/Users/janeyx/pytorch/torch/testing/_internal/common_optimizers.py", line 181, in test_wrapper
    return test(*args, **kwargs)
  File "/Users/janeyx/pytorch/test/test_optim.py", line 94, in test_forloop_goes_right_direction
    self.assertLess(closure().item(), initial_value)
AssertionError: 135.77398681640625 not less than 135.77398681640625

To execute this test, run the following from the base repo dir:
     python test/test_optim.py -k test_forloop_goes_right_direction_contiguous_False_Rprop_mps_float32

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Versions

on main

cc @vincentqb @jbschlosser @albanD @crcrpar @kulinseth @malfet @DenisVieriu97 @razarmehr

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: mpsRelated to Apple Metal Performance Shaders frameworkmodule: optimizerRelated to torch.optimtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0