Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nn_init_dirac_

Dirac initialization


Description

Fills the 3, 4, 5-dimensional input Tensor with the Dirac delta function. Preserves the identity of the inputs in Convolutional layers, where as many input channels are preserved as possible. In case of groups>1, each group of channels preserves identity.

Usage

nn_init_dirac_(tensor, groups = 1)

Arguments

tensor

a 3, 4, 5-dimensional torch.Tensor

groups

(optional) number of groups in the conv layer (default: 1)

Examples

if (torch_is_installed()) {
## Not run: 
w <- torch_empty(3, 16, 5, 5)
nn_init_dirac_(w)

## End(Not run)

}

torch

Tensors and Neural Networks with 'GPU' Acceleration

v0.3.0
MIT + file LICENSE
Authors
Daniel Falbel [aut, cre, cph], Javier Luraschi [aut], Dmitriy Selivanov [ctb], Athos Damiani [ctb], Christophe Regouby [ctb], Krzysztof Joachimiak [ctb], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.