DenseResBlock: Dense Res Block

Description Usage Arguments Value

View source: R/GAN.R

Description

Resnet block of 'nf' features. 'conv_kwargs' are passed to 'conv_layer'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
DenseResBlock(
  nf,
  norm_type = 1,
  ks = 3,
  stride = 1,
  padding = NULL,
  bias = NULL,
  ndim = 2,
  bn_1st = TRUE,
  act_cls = nn()$ReLU,
  transpose = FALSE,
  init = "auto",
  xtra = NULL,
  bias_std = 0.01,
  dilation = 1,
  groups = 1,
  padding_mode = "zeros"
)

Arguments

nf

number of features

norm_type

normalization type

ks

kernel size

stride

stride

padding

padding

bias

bias

ndim

number of dimensions

bn_1st

batch normalization 1st

act_cls

activation

transpose

transpose

init

initizalier

xtra

xtra

bias_std

bias standard deviation

dilation

dilation number

groups

groups number

padding_mode

padding mode

Value

block


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