MCPcopy Create free account
hub / github.com/PacktPublishing/Getting-Started-with-TensorFlow / ptb_iterator

Function ptb_iterator

Chapter 5/reader.py:82–117  ·  view source on GitHub ↗

Iterate on the raw PTB data. This generates batch_size pointers into the raw PTB data, and allows minibatch iteration along these pointers. Args: raw_data: one of the raw data outputs from ptb_raw_data. batch_size: int, the batch size. num_steps: int, the number of unrolls. Yi

(raw_data, batch_size, num_steps)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected