tests/testthat/test-dogs-vs-cats.R

test_that("dogs-vs-cats dataset", {

  dataset <- dogs_vs_cats_dataset(
    "./dogs-vs-cats",
    download = TRUE
  )

  expect_length(dataset$.getitem(1), 2)

})

Try the torchdatasets package in your browser

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

torchdatasets documentation built on June 22, 2024, 10:11 a.m.