Skip to content

Commit

Permalink
Wrap all Cupy ufuncs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Jul 31, 2017
1 parent 31c60d3 commit df80463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autograd/cupy/cupy_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
def wrap_namespace(old, new):
unchanged_types = {float, int, type(None), type}
int_types = {_cupy.int8, _cupy.int16, _cupy.int32, _cupy.int64, _cupy.integer}
function_types = {_cupy.ufunc, types.FunctionType, types.BuiltinFunctionType}
function_types = {_cupy.ufunc, _cupy.fusion.ufunc,
types.FunctionType, types.BuiltinFunctionType}
for name, obj in iteritems(old):
if obj in nograd_functions:
new[name] = nograd_primitive(obj)
Expand Down

0 comments on commit df80463

Please sign in to comment.