gan_loss_from_func: GAN loss from function

View source: R/GAN.R

gan_loss_from_funcR Documentation

GAN loss from function

Description

Define loss functions for a GAN from 'loss_gen' and 'loss_crit'.

Usage

gan_loss_from_func(loss_gen, loss_crit, weights_gen = NULL)

Arguments

loss_gen

generator loss

loss_crit

discriminator loss

weights_gen

weight generator

Value

None


fastai documentation built on June 22, 2024, 11:15 a.m.