Skip to content

Files

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.