TensorFlow / Keras

Understanding the training engagements for eager, GradientTape and Keras.

Readable articles
24
System Chapters
1

Linking concepts with system chapters.

Read the whole thing first

1
  1. TensorFlow and Keras: from GradientTape to checkable training steps

    Reconciling gradient records, variable updates, data flow lines and tracing boundaries with the same linear model.

    System Chapters2 Graphics6 self-measurement

Start with definitions, symbols and minimum examples.

Introduction

6 articles
  1. GradientTape: The operation must occur within the records

    The automatic fraction requires a calculation path from the target back to the input.

    Topical shorts2 self-measured
  2. watch: Guidance for input is required first to describe the object to be observed

    Training is usually conducted to guide model training variables and to explain how a user ' s identity affects predictions.

    Topical shorts2 self-measured
  3. Tensor and Variable: Value calculation and status update

    Tensor represents the value calculated once, and Variable indicates a state that can be updated on a permanent basis.

    Topical shorts2 self-measured
  4. NumPy boundary: the value reserved is not equal to the gradient retained

    In immediate execution, the load can be converted to a NumPy array for observation.

    Topical shorts2 self-measured
  5. padded_batch: Completion of position is not zero observed

    padded_batch fills the short records to the public shape when long sequences are taken.

    Topical shorts1 diagram2 self-measured
  6. Metric status: why batch mean value cannot be directly averaged

    Keras Metric Object normally saves a batch status, such as the sum of values and the sum of weights.

    Topical shorts2 self-measured

See the difference between reasoning, realization and methodology.

Step

17 articles
  1. Persistent recorder: Boundaries of repeated and high-level guidance

    Defaults that GradientTape will release the resources required for the reverse after completing a gradient query.

    Topical shorts2 self-measured
  2. tf. function Retrace: What exactly is the difference between the maps cache

    tf. function is packaged as a function that produces several specific calculations.

    Topical shorts2 self-measured
  3. TensorSpec: Interface between variable batches and fixed features

    Enter the shape, data type and optional name of the signature describing the length.

    Topical shorts2 self-measured
  4. AutoGraph: Python branch and Jang branch

    In tf. function, the Python Boolean conditions can be determined at the time of tracing, while the stretch conditions need to be retained to control the flow when running.

    Topical shorts2 self-measured
  5. tf . data map : parallel processing and sequential agreement

    Dataset. map applies the change to each data element.

    Topical shorts2 self-measured
  6. Location of cache: Cache of raw data or random results

    cache saves elements that it has produced upstream.

    Topical shorts2 self-measured
  7. prefetch: Overlapping data production and model calculations

    If no advance is taken, the model may wait for data to be prepared before the calculations are performed and the next batch will be repeated.

    Topical shorts1 diagram2 self-measured
  8. repeat with training steps: epoch not necessarily equals one trip

    Dataset. repeat allows the data to be returned to the tail.

    Topical shorts2 self-measured
  9. RaggedTensor: Save variable long data using line boundaries

    All rectangles need not be filled before the length of the length.

    Topical shorts1 diagram2 self-measured
  10. shuffle buffer : Difference between local random and total disruption

    Dataset. shuffle uses a limited buffer to select an output of elements from the buffer, supplemented by subsequent input.

    Topical shorts1 diagram2 self-measured
  11. Keras level build and call: weights are constructed only once

    The Keras subclass has usually placed the configuration unrelated to input at the initialization stage, creating weights that depend on input shapes at build and placing values forward at call.

    Topical shorts2 self-measured
  12. trainable and training: Freezing weights does not equal to switching mode

    The layered trainable attribute controls which weights are incorporated into the training update and the callers ' training parameter controls the training or reasoning behaviour.

    Topical shorts2 self-measured
  13. add_loss: When the auxiliary loss enters the overall target

    Some layers wish to bind themselves to activation or internal state, and pass the marker aids to the model through add_loss.

    Topical shorts2 self-measured
  14. train_step: Keep fit schedule and specify what to train

    Rewrite Model. train_step allows for the retention of the fit batch schedule, echo and log frame, while defining an optimist step.

    Topical shorts2 self-measured
  15. keras. ops: Borders for portable load operations

    Keras3 supports multiple computing backends, but the migration of the model is dependent on internal calculations.

    Topical shorts2 self-measured
  16. Keras Sequencing: Configuration, weights and custom objects

    The Keras model recovery needs to know how to rebuild the structure and then put it back in the corresponding position.

    Topical shorts2 self-measured
  17. export: The training model is not the same as the reasoning endpoint

    The preservation of models is used to continue training and the export model is used for independent reasoning and is two adjoining but distinct tasks.

    Topical shorts2 self-measured
♪ Back to basics ♪
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.