a b/docs-source/source/io_tensorflow.rst
1
.. currentmodule:: slideflow.io.tensorflow
2
3
slideflow.io.tensorflow
4
=======================
5
6
TFRecord interleaving in the Tensorflow backend is accomplished with :func:`slideflow.io.tensorflow.interleave`, which interleaves a set of tfrecords together into a :class:`tf.data.Datasets` object that can be used for training. This interleaving can include patient or category-level balancing for returned batches (see :ref:`balancing`).
7
8
.. note::
9
    The TFRecord reading and interleaving implemented in this module is only compatible with Tensorflow models. The :mod:`slideflow.io.torch` module includes a PyTorch-specific TFRecord reader.
10
11
.. automodule:: slideflow.io.tensorflow
12
    :members: