-
Notifications
You must be signed in to change notification settings - Fork 106
String tensor support #832
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
Changes from all commits
ed15d65
3b7d984
db207d4
7651886
31568ef
e9155c8
6cbe718
aa23ccc
7de9e54
7bdc2f7
606812d
db5d30a
0b94d62
aac7798
cb490d6
07b3843
0f77970
0b61167
4893b84
b504e01
8940c82
00b2f96
01dc09c
adaa680
97986c6
c6238cd
794bbdf
42369fd
db903a4
705ee47
e31d1aa
b8b3e19
fbbb4e7
cb835ab
e548cc1
4baceca
1929bf6
11c4948
acaa815
eebffc3
848ef81
8a1d3b7
2b3f391
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ AI.TENSORSET <key> <type> | |
_Arguments_ | ||
|
||
* **key**: the tensor's key name | ||
* **type**: the tensor's data type can be one of: `FLOAT`, `DOUBLE`, `INT8`, `INT16`, `INT32`, `INT64`, `UINT8` or `UINT16` | ||
* **type**: the tensor's data type can be one of: `FLOAT`, `DOUBLE`, `INT8`, `INT16`, `INT32`, `INT64`, `UINT8`, `UINT16`, `BOOL` or `STRING` | ||
* **shape**: one or more dimensions, or the number of elements per axis, for the tensor | ||
* **BLOB**: indicates that data is in binary format and is provided via the subsequent `data` argument | ||
* **VALUES**: indicates that data is numeric and is provided by one or more subsequent `val` arguments | ||
|
@@ -45,6 +45,8 @@ This will set the key 'mytensor' to the 2x2 RedisAI tensor: | |
``` | ||
redis> AI.TENSORSET mytensor FLOAT 2 2 VALUES 1 2 3 4 | ||
OK | ||
redis> AI.TENSORSET mytensor STRING 1 2 VALUES first second | ||
OK | ||
Comment on lines
+48
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please have a dedicated section regarding strings There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, will do in a new PR |
||
``` | ||
|
||
!!! note "Uninitialized Tensor Values" | ||
|
Uh oh!
There was an error while loading. Please reload this page.