7
7
8
8
# ############# Binary ufuncs ######################
9
9
10
- __binary__ = [
10
+ _binary = [
11
11
name
12
12
for name in dir (_binary_ufuncs_impl )
13
13
if not name .startswith ("_" ) and name not in ["torch" , "matmul" ]
@@ -120,7 +120,7 @@ def divmod(
120
120
# For each torch ufunc implementation, decorate and attach the decorated name
121
121
# to this module. Its contents is then exported to the public namespace in __init__.py
122
122
#
123
- for name in __binary__ :
123
+ for name in _binary :
124
124
ufunc = getattr (_binary_ufuncs_impl , name )
125
125
decorated = normalizer (deco_binary_ufunc (ufunc ))
126
126
@@ -134,13 +134,13 @@ def modf(x, /, *args, **kwds):
134
134
return rem , quot
135
135
136
136
137
- __binary__ = __binary__ + ["divmod" , "modf" , "matmul" ]
137
+ _binary = _binary + ["divmod" , "modf" , "matmul" ]
138
138
139
139
140
140
# ############# Unary ufuncs ######################
141
141
142
142
143
- __unary__ = [
143
+ _unary = [
144
144
name
145
145
for name in dir (_unary_ufuncs_impl )
146
146
if not name .startswith ("_" ) and name != "torch"
@@ -185,7 +185,7 @@ def wrapped(
185
185
# For each torch ufunc implementation, decorate and attach the decorated name
186
186
# to this module. Its contents is then exported to the public namespace in __init__.py
187
187
#
188
- for name in __unary__ :
188
+ for name in _unary :
189
189
ufunc = getattr (_unary_ufuncs_impl , name )
190
190
decorated = normalizer (deco_unary_ufunc (ufunc ))
191
191
@@ -194,4 +194,4 @@ def wrapped(
194
194
vars ()[name ] = decorated
195
195
196
196
197
- __all__ = __binary__ + __unary__
197
+ __all__ = _binary + _unary
0 commit comments