8000 Add a CI job for cpp/dcgan (#1221) · pytorch/examples@b88d805 · GitHub
[go: up one dir, main page]

Skip to content

Commit b88d805

Browse files
authored
Add a CI job for cpp/dcgan (#1221)
1 parent d78cff0 commit b88d805

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

run_cpp_examples.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,21 @@ function custom-dataset() {
9494
exit 1
9595
fi
9696
}
97+
function dcgan() {
98+
start
99+
mkdir build
100+
cd build
101+
cmake -DCMAKE_PREFIX_PATH=$LIBTORCH_PATH ..
102+
make
103+
if [ $? -eq 0 ]; then
104+
echo "Successfully built $EXAMPLE"
105+
./$EXAMPLE # Run the executable
106+
check_run_success $EXAMPLE
107+
else
108+
error "Failed to build $EXAMPLE"
109+
exit 1
110+
fi
111+
}
97112

98113
function mnist() {
99114
start
@@ -141,6 +156,7 @@ function clean() {
141156
function run_all() {
142157
autograd
143158
custom-dataset
159+
dcgan
144160
mnist
145161
regression
146162
}

0 commit comments

Comments
 (0)
0