Created
May 22, 2020 20:06
-
-
Save karanpathak/0b2980ae94d216d223793102afb80e90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mem.cache(verbose=0) | |
def func_as_decorator(x): | |
print("Example of Computationally intensive function!") | |
print("The result is not cached for this particular input") | |
sleep(4.0) | |
return np.square(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment