# Kernel binary memoization¶

cupy.memoize()

Makes a function memoizing the result for each argument and device.

This decorator provides automatic memoization of the function result.

Parameters: for_each_device (bool) – If True, it memoizes the results for each device. Otherwise, it memoizes the results only based on the arguments.
cupy.clear_memo()

Clears the memoized results for all functions decorated by memoize.