chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
@@ -0,0 +1,23 @@
# 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.