partial(func, *args, **keywords) - new function with partial application

partial(...)

Arguments

...

additional arguments

Value

None

Examples


if (FALSE) {

generator = basic_generator(out_size = 64, n_channels = 3, n_extra_layers = 1)
critic    = basic_critic(in_size = 64, n_channels = 3, n_extra_layers = 1,
                         act_cls = partial(nn$LeakyReLU, negative_slope = 0.2))

}