mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/70471 Reland D33282878 (911d527b87). This is the frontend change. ghstack-source-id: 149114933 Test Plan: Refer to D33282878 (911d527b87). Also check CI Reviewed By: gmagogsfm Differential Revision: D33342569 fbshipit-source-id: 57984ac67ae2c56c38f72d3b1fb69105901fb472 (cherry picked from commitb47cc935ee)
9 lines
291 B
Python
9 lines
291 B
Python
r"""
|
|
Define exceptions used in test_exception.py. We define them in a
|
|
separate file on purpose to make sure the fully qualified exception class name
|
|
is captured correctly in suce cases.
|
|
"""
|
|
class MyKeyError(KeyError):
|
|
def __init__(self, msg):
|
|
super(KeyError, self).__init__(msg)
|