inst/inst__nn_modules__general/nn_module__nn_negative.R

nn_negative <- torch::nn_module(
  classname = "nn_negative",
  # --- init
  initialize = function(...){
  # -- empty

  },
  # --- forward
  forward = function(x,...) {
    return( -x )
  }
)
adsb85/lqp documentation built on April 9, 2022, 12:35 a.m.