| materialize_internal | R Documentation |
Convert a lazy_tensor to a torch_tensor.
materialize_internal(x, device = "cpu", cache = NULL, rbind)
x |
( |
device |
( |
cache |
( |
rbind |
( |
Materializing a lazy tensor consists of:
Loading the data from the internal dataset of the DataDescriptor.
Processing these batches in the preprocessing Graphs.
Returning the result of the PipeOp pointed to by the DataDescriptor (pointer).
When materializing multiple lazy_tensor columns, caching can be useful because:
a) Output(s) from the dataset might be input to multiple graphs.
(in task_dataset this is shoudl rarely be the case because because we try to merge them).
b) Different lazy tensors might be outputs from the same graph.
For this reason it is possible to provide a cache environment. The hash key for a) is the hash of the indices and the dataset. The hash key for b) is the hash of the indices dataset and preprocessing graph.
lazy_tensor()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.