Paolo Galeone - Dissecting tf.function to discover AutoGraph strengths and subtleties

preview_player
Показать описание
[EuroPython 2019 - Talk - 2019-07-10 - Singapore [PyData track]
[Basel, CH]

By Paolo Galeone

AutoGraph is one of the most exciting new features of Tensorflow 2.0: it allows transforming a subset of Python syntax into its portable, high-performance and language agnostic graph representation bridging the gap between Tensorflow 1.x and the 2.0 release based on eager execution.

In particular, knowing how:

A graph is created and when it is re-used;
To deal with functions that create a state;
To correctly use the Tensorflow codetf.Tensor/code object instead of using the Python native types to speed-up the computation;

defines the minimum skill-set required to write correct graph-accelerable code.

Рекомендации по теме