Files
wehub-resource-sync 8a852e4b4e
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:14:16 +08:00
..

AutoGraph reference tests

This directory contains tests for various Python idioms under AutoGraph. Since they are easy to read, they also double as small code samples. For constructs which are not supported, these tests indicate the error being raised.

The BUILD file contains the full list of tests.

Locating the samples inside tests

Each test is structured as:

<imports>

<sample functions>

<test class>

The sample functions are what demonstrate how code is authored for AutoGraph.

The test in generale ensure that the sample code produces the same results when run in a TF graph as it would when executed as regular Python.