
Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
if (torch_is_installed()) {
# With Learnable Parameters
m <- nn_batch_norm1d(100)
# Without Learnable Parameters
m <- nn_batch_norm1d(100, affine = FALSE)
input <- torch_randn(20, 100)
output <- m(input)
}
# }
Run the code above in your browser using DataLab