Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ Below is more information about TensorFlow-related build arguments.
* Default value: None.
* `tensorflow-swift-apis`: A path to the [tensorflow/swift-apis](https://github.com/tensorflow/swift-apis) deep learning library repository.
* Default value: `tensorflow-swift-apis` if the [tensorflow/swift-apis](https://github.com/tensorflow/swift-apis) repository is cloned. Otherwise, none.
* `tensorflow-swift-bindings`: A path to the [tensorflow/swift-bindings](https://github.com/tensorflow/swift-bindings) repository.
* Default value: `tensorflow-swift-bindings` if the [tensorflow/swift-bindings](https://github.com/tensorflow/swift-bindings) repository is cloned. Otherwise, none.

### Build systems

Expand Down
14 changes: 2 additions & 12 deletions stdlib/public/TensorFlow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ list(APPEND swift_stdlib_compile_flags "-DCOMPILING_TENSORFLOW_MODULE")

set(SOURCES
ArrayOps.swift
CompilerRuntime.swift
CompositeMath.swift
DataTypes.swift
Execution.swift
Expand All @@ -48,24 +47,15 @@ set(SOURCES
TensorHandle.swift
TensorProtocol.swift
TensorShape.swift
Threading.swift
Utilities.swift)
Threading.swift)

set(GYB_SOURCES
ExecuteOp.swift.gyb)

# Copy TensorFlow bindings file, if it exists.
if (TENSORFLOW_SWIFT_BINDINGS)
file(GLOB_RECURSE TENSORFLOW_SWIFT_BINDINGS_SOURCES
"${TENSORFLOW_SWIFT_BINDINGS}/*.swift")
list(APPEND SOURCES "${TENSORFLOW_SWIFT_BINDINGS_SOURCES}")
endif()

# Copy TensorFlow high-level API sources, if they exist.
if (TENSORFLOW_SWIFT_APIS)
file(GLOB_RECURSE TENSORFLOW_SWIFT_API_SOURCES
"${TENSORFLOW_SWIFT_APIS}/Sources/*.swift"
"${TENSORFLOW_SWIFT_APIS}/Sources/Core/*.swift")
"${TENSORFLOW_SWIFT_APIS}/Sources/*.swift")
message(STATUS "Using TensorFlow high-level APIs library.")
list(APPEND SOURCES "${TENSORFLOW_SWIFT_API_SOURCES}")
endif()
Expand Down
Loading