Skip to content
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

Support for variadic arguments on SCRIPTRUN #10

Open
filipecosta90 opened this issue Jun 4, 2020 · 0 comments
Open

Support for variadic arguments on SCRIPTRUN #10

filipecosta90 opened this issue Jun 4, 2020 · 0 comments
Assignees

Comments

@filipecosta90
Copy link
Collaborator

Further reference:
https://oss.redislabs.com/redisai/master/commands/#aiscriptrun

Example on how provide an arbitrary number of inputs after the $ sign::

redis> AI.TENSORSET mytensor1 FLOAT 1 VALUES 40
OK
redis> AI.TENSORSET mytensor2 FLOAT 1 VALUES 1
OK
redis> AI.TENSORSET mytensor3 FLOAT 1 VALUES 1
OK
redis> AI.SCRIPTRUN myscript addn INPUTS mytensor1 $ mytensor2 mytensor3 OUTPUTS result
OK
redis> AI.TENSORGET result VALUES
1) FLOAT
2) 1) (integer) 1
3) 1) "42"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants