Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 6238ea6

Browse files
committed
Add Autoencoder CMake
1 parent 1555422 commit 6238ea6

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Autoencoder/CMakeLists.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
add_executable(Autoencoder
2+
Autoencoder1D/main.swift
3+
Autoencoder2D/main.swift
4+
VAE1D/main.swift)
5+
target_link_libraries(Autoencoder PRIVATE
6+
Datasets
7+
ModelSupport)
8+
9+
10+
install(TARGETS Autoencoder
11+
DESTINATION bin)

Autoencoder/VAE1D/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ for epoch in 1...epochCount {
127127

128128
optimizer.update(&vae, along: 𝛁model)
129129
}
130-
}
130+
}

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ set_target_properties(SwiftProtobuf PROPERTIES
6868
INTERFACE_INCLUDE_DIRECTORIES ${BINARY_DIR}/swift)
6969
add_dependencies(SwiftProtobuf swift-protobuf-build)
7070

71+
add_subdirectory(Autoencoder)
7172
add_subdirectory(Support)
7273
add_subdirectory(Batcher)
7374
add_subdirectory(Datasets)

0 commit comments

Comments
 (0)