lazy_tensor | R Documentation |
Create a lazy tensor.
lazy_tensor(data_descriptor = NULL, ids = NULL)
data_descriptor |
( |
ids |
( |
ds = dataset("example",
initialize = function() self$iris = iris[, -5],
.getitem = function(i) list(x = torch_tensor(as.numeric(self$iris[i, ]))),
.length = function() nrow(self$iris)
)()
dd = as_data_descriptor(ds, list(x = c(NA, 4L)))
lt = as_lazy_tensor(dd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.