tests/testthat/test-shape.R

test_that("shape() works", {

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

})

Try the keras3 package in your browser

Any scripts or data that you put into this service are public.

keras3 documentation built on April 4, 2025, 12:32 a.m.