Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PolyMathOrg/libtensorflow-pharo-bindings
TensorFlow library bindings for Pharo
https://github.com/PolyMathOrg/libtensorflow-pharo-bindings
machine-learning pharo pharo-smalltalk smalltalk tensorflow
Last synced: 3 months ago
JSON representation
TensorFlow library bindings for Pharo
- Host: GitHub
- URL: https://github.com/PolyMathOrg/libtensorflow-pharo-bindings
- Owner: PolyMathOrg
- License: mit
- Created: 2018-02-11T16:38:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T09:56:23.000Z (over 3 years ago)
- Last Synced: 2024-04-24T17:31:27.182Z (6 months ago)
- Topics: machine-learning, pharo, pharo-smalltalk, smalltalk, tensorflow
- Language: Smalltalk
- Homepage:
- Size: 438 KB
- Stars: 32
- Watchers: 13
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pharo - TensorFlow Bindings - Allows to use [TensorFlow](https://www.tensorflow.org/) in Pharo. (Artificial Intelligence and Machine Learning)
- awesome-pharo-ml - TensorFlow bindings - allows to use [TensorFlow](https://www.tensorflow.org/) in Pharo (Deep Learning)
README
# libtensorflow-pharo-bindings
This is a fork of https://github.com/Cuis-Smalltalk/Machine-Learning for Pharo. This library was also ported to VA Smalltalk :
https://github.com/vasmalltalk/tensorflow-vastYou will need a 64 bits Pharo VM in order to run the code. The code has only be tested on Pharo 9.0 on macOS and Windows with TensorFlow 1.15.5: https://github.com/tensorflow/tensorflow/releases/tag/v1.15.5.
## Installation
- Install last Pharo 9.0 64 bit VM and image from the command line : https://pharo.org/download
- Install the project in Pharo
To install the project on your Pharo image you can execute the following script:```Smalltalk
Metacello new
githubUser: 'PolyMathOrg' project: 'libtensorflow-pharo-bindings' commitish: 'master' path: '';
baseline: 'LibTensorFlowPharoBinding';
load
```Alternatively you can use Iceberg to load the code of this repository (See the video here: https://www.youtube.com/watch?v=U6Ttcc1KJUg&feature=youtu.be)
To add the project to your baseline just add this:
```Smalltalk
spec
baseline: 'LibTensorFlowPharoBinding'
with: [ spec repository: 'github://PolyMathOrg/libtensorflow-pharo-bindings' ]
```## Installation of TensorFlow C API on MacOS
- Install TensorFlow C API on your computer. On macOS, the simpliest way to do that is to use Brew:
```brew install tensorflow```
If you don't use brew, check the [installation guide](https://www.tensorflow.org/install/lang_c)
- check method ```TensorFlowCAPI>>macModulename```to put the path to where Tensorflow libraries are located on your computer:
```Smalltalk
TensorFlowCAPI>>macModulename
^ '/usr/local/Cellar/libtensorflow/1.15.5/lib/libtensorflow.so'
```
## Installation of TensorFlow C API on Windows
- Check the Tensorflow for C [installation guide](https://www.tensorflow.org/install/lang_c)## Installation of TensorFlow C API on Linux
- Check the Tensorflow for C [installation guide](https://www.tensorflow.org/install/lang_c)
- check method ```TensorFlowCAPI>>unixModulename```to put the path to where Tensorflow libraries are located on your computer:
```Smalltalk
TensorFlowCAPI>>unixModulename
^ '/usr/local/lib/libtensorflow.so'
```