Skip to content

Commit 7536b62

Browse files
author
hhsecond
committed
modescan to modelscan
1 parent fb1b850 commit 7536b62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisai/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def modelrun(self,
106106
)
107107
return out.decode()
108108

109-
def modescan(self) -> list:
109+
def modelscan(self) -> list:
110110
warnings.warn("Experimental: Model List API is experimental and might change "
111111
"in the future without any notice", UserWarning)
112112
return utils.un_bytize(self.execute_command("AI._MODELSCAN"), lambda x: x.decode())

test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_model_list(self):
245245
ptmodel = load_model(model_path)
246246
con = self.get_client()
247247
con.modelset("pt_model", 'torch', 'cpu', ptmodel)
248-
mlist = con.modescan()
248+
mlist = con.modelscan()
249249
self.assertEqual(mlist, [['pt_model', ''], ['m', 'v1.2']])
250250

251251
def test_script_list(self):

0 commit comments

Comments
 (0)