partial: Partial

Description Usage Arguments Value Examples

View source: R/test.R

Description

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

Usage

1

Arguments

...

additional arguments

Value

None

Examples

1
2
3
4
5
6
7
8
## Not run: 

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))


## End(Not run)

fastai documentation built on July 28, 2021, 5:06 p.m.