public class Tensor extends Object
Constructor and Description |
---|
Tensor(DataType dataType,
long[] shape,
Object values) |
Modifier and Type | Method and Description |
---|---|
protected static Tensor |
createTensorFromRespReply(List<?> reply)
Given a RESP reply from RedisAI this method will create a new Tensor
|
DataType |
getDataType() |
long[] |
getShape() |
Object |
getValues() |
void |
setDataType(DataType dataType) |
void |
setValues(Object values) |
protected static List<byte[]> |
tensorGetFlatArgs(String key,
boolean includeCommandName) |
protected List<byte[]> |
tensorSetFlatArgs(String key,
boolean includeCommandName)
Encodes the current model properties into an AI.MODELSET command to be store in RedisAI Server
|
protected static Tensor createTensorFromRespReply(List<?> reply)
reply
- reply from RedisAI Serverpublic Object getValues()
public void setValues(Object values)
public long[] getShape()
public DataType getDataType()
public void setDataType(DataType dataType)
protected List<byte[]> tensorSetFlatArgs(String key, boolean includeCommandName)
key
- name of key to store the ModelCopyright © 2021. All rights reserved.