tests/testthat/test-bird-species.R

test_that("bird-species works", {

  dataset <- bird_species_dataset(
    root = "./bird",
    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 Feb. 16, 2023, 9:23 p.m.