torch icon indicating copy to clipboard operation
torch copied to clipboard

Better error message when passing `nnf_*` functions to `nn_sequential`

Open dfalbel opened this issue 4 years ago • 0 comments

The current error message is not helpful at all:

Error in torch_relu(input) : argument "input" is missing, with no default
library(torch)
nn_sequential(
  nnf_relu()
)
#> Error in torch_relu(input): argument "input" is missing, with no default

Created on 2021-05-12 by the reprex package (v0.3.0)

dfalbel avatar May 12 '21 16:05 dfalbel