mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 04:22:38 +02:00
[GPU]
This commit is contained in:
parent
06336bf0d4
commit
ddbf15d763
6 changed files with 122 additions and 86 deletions
|
|
@ -123,7 +123,8 @@ class Cacher_wrap(object):
|
|||
def __get__(self, obj, objtype=None):
|
||||
return partial(self, obj)
|
||||
def __call__(self, *args, **kwargs):
|
||||
obj = args[0]
|
||||
obj = args[0] # <------------------- WHAT IF IT IS ONLY A FUNCTION!
|
||||
|
||||
#import ipdb;ipdb.set_trace()
|
||||
try:
|
||||
caches = obj.__cachers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue