Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Oct 12, 2023
1 parent 5c5baad commit 916c32c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-Transformer.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ test_that("transformer nn-module works", {
)
output <- model(input)
expect_equal(output$shape[0], 10L)

input$num <- reticulate::py_none()
output <- model(input)
expect_equal(output$shape[0], 10L)


})

test_that("Default Transformer works", {
Expand Down

0 comments on commit 916c32c

Please sign in to comment.