inst/doc/introduction.R

## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)

## ---- eval=FALSE--------------------------------------------------------------
#  library(tfio)
#  dataset <- sequence_file_dataset("R-package/tests/testthat/testdata/string.seq") %>%
#      dataset_repeat(2)
#  
#  sess <- tf$Session()
#  iterator <- make_iterator_one_shot(dataset)
#  next_batch <- iterator_get_next(iterator)
#  
#  until_out_of_range({
#    batch <- sess$run(next_batch)
#    print(batch)
#  })

Try the tfio package in your browser

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

tfio documentation built on Dec. 25, 2019, 5:06 p.m.