1 from torch._C import _set_backcompat_broadcast_warn
2 from torch._C import _get_backcompat_broadcast_warn
3 from torch._C import _set_backcompat_keepdim_warn
4 from torch._C import _get_backcompat_keepdim_warn
8 def __init__(self, setter, getter):
12 def set_enabled(self, value):
15 def get_enabled(self):
18 enabled = property(get_enabled, set_enabled)
20 broadcast_warning =
Warning(_set_backcompat_broadcast_warn, _get_backcompat_broadcast_warn)
21 keepdim_warning =
Warning(_set_backcompat_keepdim_warn, _get_backcompat_keepdim_warn)