mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
WARNING: switched caching off
This commit is contained in:
parent
399da015e6
commit
a35464b32f
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ class Cacher(object):
|
||||||
if not all([isinstance(arg, Observable) for arg in observable_args]):
|
if not all([isinstance(arg, Observable) for arg in observable_args]):
|
||||||
return self.operation(*args)
|
return self.operation(*args)
|
||||||
|
|
||||||
|
# TODO: WARNING !!! Cache OFFSWITCH !!! WARNING
|
||||||
|
return self.operation(*args)
|
||||||
|
|
||||||
#if the result is cached, return the cached computation
|
#if the result is cached, return the cached computation
|
||||||
state = [all(a is b for a, b in zip(args, cached_i)) for cached_i in self.cached_inputs]
|
state = [all(a is b for a, b in zip(args, cached_i)) for cached_i in self.cached_inputs]
|
||||||
if any(state):
|
if any(state):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue