Creates a Value object

value_create(var, data, seq_starts = NULL, device = NULL,
  read_only = FALSE)

Arguments

var

(Variable) variable into which data is passed

data

matrix denoting the full minibatch or one parameter or constant

seq_starts

(list of bools or NULL) if None, every sequence is treated as a new sequence. Otherwise, it is interpreted as a list of Booleans that tell whether a sequence is a new sequence (True) or a continuation of the sequence in the same slot of the previous minibatch (False)

device

instance of DeviceDescriptor

read_only

(bool) whether the data can be modified