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 Nov 14 2022 16:10:57 GMT-0500 (GMT-05:00)