View source: R/approach_vaeac_torch_modules.R
| vaeac_extend_batch | R Documentation |
If the height of the batch is less than batch_size, this function extends the batch with
data from the torch::dataloader() until the batch reaches the required size.
Note that batch is a tensor.
vaeac_extend_batch(batch, dataloader, batch_size)
batch |
The batch we want to check if has the right size, and if not extend it until it has the right size. |
dataloader |
A |
batch_size |
Integer. The number of samples to include in each batch. |
Returns the extended batch with the correct batch_size.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.