Skip to content

Commit 7f98915

Browse files
committed
added fx tests
1 parent 349c08e commit 7f98915

File tree

6 files changed

+18
-1
lines changed

6 files changed

+18
-1
lines changed

CODEOWNERS

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ run_python_examples.sh @msaroufim
1919

2020
# Need an owner
2121
./regression/
22-
./snli/
2322
./mnist/
2423
./imagenet/
2524
./super_resolution/
2625
./time_sequence_prediction/
2726
./vae/
27+
28+
# Legacy examples
2829
./cpp/
30+
./legacy/snli/

snli/model.py legacy/snli/model.py

File renamed without changes.
File renamed without changes.

snli/train.py legacy/snli/train.py

File renamed without changes.

snli/util.py legacy/snli/util.py

File renamed without changes.

run_python_examples.sh

+15
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ function snli() {
124124
python train.py --epochs 1 --dev_every 1 --no-bidirectional --dry-run || error "couldn't train snli"
125125
}
126126

127+
function fx() {
128+
start
129+
python custom_tracer.py || error "fx custom tracer has failed"
130+
python invert.py || error "fx invert has failed"
131+
python module_tracer.py || error "fx module tracer has failed"
132+
python nnc_compiler.py || error "fx nnc compile has failed"
133+
python primitive_library.py || error "fx primitive library has failed"
134+
python profiling_tracer.py || error "fx profiling tracer has failed"
135+
python replace_op.py || error "fx replace op has failed"
136+
python subgraph_rewriter_basic_use.py || error "fx subgraph has failed"
137+
python vmap.py || error "vmap has failed"
138+
python vmap_output_dynamically.py || error "vmap output dynamically has failed"
139+
}
140+
127141
function super_resolution() {
128142
start
129143
python main.py --upscale_factor 3 --batchSize 4 --testBatchSize 100 --nEpochs 1 --lr 0.001 || error "super resolution failed"
@@ -185,6 +199,7 @@ function run_all() {
185199
time_sequence_prediction
186200
vae
187201
word_language_model
202+
fx
188203
}
189204

190205
# by default, run all examples

0 commit comments

Comments
 (0)