Skip to content

Commit

Permalink
Make autograd example 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 authored and jatkinson1000 committed Oct 1, 2024
1 parent 5a322e0 commit 30d71bc
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if(CMAKE_BUILD_TESTS)
# add_subdirectory(3_MultiGPU)
add_subdirectory(4_MultiIO)
# add_subdirectory(5_Looping)
add_subdirectory(6_Autograd)
add_subdirectory(7_Autograd)
endif()
2 changes: 1 addition & 1 deletion pages/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ data to multiple GPU devices.
considers a variant of the SimpleNet demo, which demonstrates how to account for
multiple input tensors and multiple output tensors.

#### 5) Autograd
#### 7) Autograd

[This worked example](https://github.com/Cambridge-ICCS/FTorch/tree/main/examples/5_Autograd)
is currently under development. Eventually, it will demonstrate how to perform
Expand Down
5 changes: 2 additions & 3 deletions run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
set -eu

CTEST_ARGS=$@
EXAMPLES="1_SimpleNet 2_ResNet18 4_MultiIO 6_Autograd"
EXAMPLES="1_SimpleNet 2_ResNet18 4_MultiIO 7_Autograd"
BUILD_DIR=src/build

for EXAMPLE in ${EXAMPLES}
do
for EXAMPLE in ${EXAMPLES}; do
pip -q install -r examples/${EXAMPLE}/requirements.txt
cd ${BUILD_DIR}/test/examples/${EXAMPLE}
ctest ${CTEST_ARGS}
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if(CMAKE_BUILD_TESTS)
# file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/5_Looping
# DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples
# )
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/6_Autograd
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/7_Autograd
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples
)
add_subdirectory(test/examples)
Expand Down

0 comments on commit 30d71bc

Please sign in to comment.