Skip to content

Commit a1e663e

Browse files
committed
Update on "Use generated files in module test"
Instead of checking in the PTE/PTD files. This helps us keep up to date with aot changes, especially with incoming flat_tensor refactor. Main changes here are with the model. Instead of using AddModule from examples/portable, use ModuleAdd from test/models/export_program, like our other tests. There is a shape difference (1 tensor vs 2 tensors+alpha), so we have to change all the inputs. Differential Revision: [D73470865](https://our.internmc.facebook.com/intern/diff/D73470865/) [ghstack-poisoned]
2 parents d848551 + 1747562 commit a1e663e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extension/module/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ add_custom_command(
2929
COMMAND
3030
python3 -m test.models.export_program --modules "ModuleLinear"
3131
--external-constants --outdir "${CMAKE_CURRENT_BINARY_DIR}" 2> /dev/null
32+
WORKING_DIRECTORY ${EXECUTORCH_ROOT}
3233
)
3334

3435
add_custom_target(

0 commit comments

Comments
 (0)