tests/testthat/test-shape.R

test_that("shape() works", {

  expect_identical(shape(NULL, 28),
                   structure(list(NULL, 28L), class = "keras_shape"))

})
rstudio/keras documentation built on July 8, 2024, 3:07 p.m.