Location of cache: Cache of raw data or random results

cache saves elements that it has produced upstream.

• Step by stepCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives 2 first fixes

Try to do it after reading

  • The order of the decomposition cache and random changes
  • Determines whether the cache can be contained and written in its entirety

Suggested first

  • Python Basic Syntax:
  • Counting and training closed

Cache is not a semantic acceleration switch

cache saves elements that it has produced upstream. The next time these elements are repeated, the changes before the cache will not be repeated. So a buffer is stored after random enhancements, and the result is preserved together; Before being enhanced, there is an opportunity to regenerate random results per round. This is the difference between data definitions and cannot be chosen more quickly on the basis of which combinations.

Sets the original data x = 10, with an enhancement of one random deviation per wheel. First round to +2, output 12. If enhanced, then cache, the full follow-up history still reads 12; If the cache of original 10 is enhanced, the second round is drawn to -1 p.m. for output 9. The random number of specific values is a teaching setting, but the differences caused by the cache boundary are determined.

Similarly, first shuffle and then cache may fix the order of first-time formation; cache first and shuffle can be redisrupted downstream by the configuration. If the target is a new sequence for each round, the shuffle should be placed after the corresponding cache and the setting reshuffle_each_iteration, etc. should not be checked for the presence of shuffle.

Cache must go through it

Cache data are discontinued earlier than they have been fully filled, affecting the subsequent reuse strategy, and it cannot be assumed that the previous batches have a complete cache. Infinity repeat is more dangerous before cache: the upstream is not over, the cache may not be complete and the RAM may continue to grow. Limited data are cached and repeated at training steps, often more easily explained.

Memory caches are also capacity bound. If each decryption of 10000 maps has 224 x 224 x 3 float32, the simple pixels are about 6 GB, which is much larger than the intuitive size of the compressed file. The estimates should be based on the actual volume of the cache, shape and dtype, plus the costs of queues and running hours, rather than the size of a statistical disk directory.

The disk cache should also bind the data and pre-processing versions. Upstream documents have been updated, but old caches continue to be read, and training logs may not be consistent with raw data. Cache path name at least the relevant sample list or data version and, by stabilizing the number, sample the contents to prevent the misreading of the " hit cache " to " read the latest data " .

Scope of application is TensorFlow 2 tf. data. 12 with 9 is a regular demonstration; Volume is an elemental level estimate. Optimization is preceded by a clear need to retain randomity or to have fixed characteristics before the right boundary can be selected.

It is hoped that each round of photo enhancement will be different, and random enhancement should be placed on the cache side.

Usually placed after cache, the Cache definition read or decoded the result so that the enhancement is performed at every time.

Why can't you estimate float32 caches with compressed picture files?

Each pixel and channel after decoding takes a fixed byte, and there may also be scaling and type conversions. Cache saves the elements of the location, not necessarily the original compression bytes.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. TensorFlow — tf.data: Build TensorFlow input pipelines
  2. TensorFlow — Better performance with tf.data

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.