CTensorFlow

master

C TensorFlow module for Swift
Octadero/CTensorFlow

CTensorFlow

TensorFlow C Bindings for Swift

Using CTensorFlow

Add that dependency to your Package.swift file. That module makes bridge to libtensorflow library.

let package = Package(
	name: "YourProject",
	dependencies: [
		.package(url: "git@github.com:Octadero/CTensorFlow.git", from: "0.1.6")
	]
)

Linux

On Linux OS you could install library from sources or using apt package manager.

mac OS

On mac OS you could install library from sources or using brew package manager.

PkgConfig

In case, installing from sources: To make interaction more easy, copy tensorflow.pc file to your pkgconfig folder. That is way to avoid setting all compile flags at build phase.

Before that, set tensorflow_path property in tensorflow.pc file to your tensorflow library path.

sudo copy tensorflow.pc /usr/local/lib/pkgconfig/

Troubleshooting

If you use apt or brew package manager, make shure that your tensorflow.pc file contains only whitelisted flags.

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Oct 21 2024 14:16:08 GMT-0900 (Hawaii-Aleutian Daylight Time)