darabos commited on
Commit
01d08d9
·
1 Parent(s): 13fabc5

Fix make_async().

Browse files
lynxkite-core/src/lynxkite/core/ops.py CHANGED
@@ -254,8 +254,8 @@ def op(
254
  _view = "image"
255
  func = matplotlib_to_image(func)
256
  if slow:
257
- func = mem.cache(func)
258
  func = make_async(func)
 
259
  # Positional arguments are inputs.
260
  inputs = [
261
  Input(name=name, type=param.annotation)
 
254
  _view = "image"
255
  func = matplotlib_to_image(func)
256
  if slow:
 
257
  func = make_async(func)
258
+ func = mem.cache(func)
259
  # Positional arguments are inputs.
260
  inputs = [
261
  Input(name=name, type=param.annotation)