-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for config command #98
Conversation
con = self.get_client() | ||
model_path = os.path.join(MODEL_DIR, torch_graph) | ||
pt_model = load_model(model_path) | ||
self.assertEqual(con.modelstore("pt_model", "torch", "cpu", pt_model), 'OK') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to move to py+ asserts?
assert con.modeulstore("pt_model", "torch", "cpu", pt_model") == OK"
test/test.py
Outdated
@@ -648,6 +649,41 @@ def test_debug(self): | |||
con.tensorset("x", (2, 3, 4, 5), dtype="float") | |||
self.assertEqual(["AI.TENSORSET x FLOAT 4 VALUES 2 3 4 5"], output) | |||
|
|||
def test_config(self): | |||
con = self.get_client() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't it changed to static methid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right... I fixed a warning. Will change self
to the name of the class
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Wrap AI.CONFIG with
client.config
API