library(tfautograph)
<- tf$TensorArray(tf$float32, size = 5L)
ta for(i in 0:4)
<- i
ta[[i]] $stack()
ta
# You can use this to grow objects in graph mode
<- tf$TensorArray(tf$float32, size = 0L, dynamic_size=TRUE)
accuracies_log for(epoch in 0:4)
<- runif(1)
accuracies_log[[epoch]] <- accuracies_log$stack()
acc acc
[[<-.tensorflow.python.ops.tensor_array_ops.TensorArray
TensorArray.write()
Description
TensorArray.write()
Usage
## S3 method for class 'tensorflow.python.ops.tensor_array_ops.TensorArray'
name = NULL) <- value [[(ta, i, ...,
Arguments
Arguments | Description |
---|---|
ta | a tensorflow TensorArray |
i | something castable to an int32 scalar tensor. 0-based. |
… | Error if anything is passed to ... |
name | A scalar string, name of the op |
value | The value to write. |