Coder Social home page Coder Social logo

tensorflowforpascal's Introduction

tensorflowforpascal

Use TensorFlow from Pascal (FreePascal, Lazarus, etc.)

This project is to support TensorFlow in a Pascal environment. It is built up hierarchically as follows:

Low level:

tf_api.pas (in units) is the low level pascal interface to the TensorFlow library (c_api.h alike).

Medium level:

tf_tensors.pas (in units) is a unit to create Tensors and do some basic stuff with them.

tf_operations.pas (in units) is a unit to build Graphs or to execute Operations in an Eager like way. Both the Graph and the Eager approach use operation independent, "Generic" functions to access TensorFlow operations.

High level:

tf_wrapper.pas (you can generate it for yourself, but a copy is available in units) is the highest level interface, including operation specific functions built on the tf_operations.pas Generic object TGraph and Generic function ExecOper. This unit is automatically generated using the WrapperMaker program (see below).

WrapperMaker program

wrappermaker.pas (in wrappermaker) is the source code of the experimental program WrapperMaker. It uses the TensorFlow ops.pbtxt description file (available from github.com/tensorflow, but a copy is included in wrappermaker) and the tf_wrappertemplate.pas source file (also in wrappermaker) to generate tf_wrapper. Check the source code for details or run it with --help option to see, how you can generate different versions of tf_wrapper according to your needs.

ops.pbtxt (in wrappermaker) is the copy of TensorFlow operation description file.

tf_wrappertemplate.pas (in wrappermaker) is the template used to generate tf_wrapper.

help1.txt and help2.txt (in wrappermaker) are the help files for --help=1 and --help=2 options.

Examples

examples.pas (in examples) is a simple program, showing some examples, how to use all the above.

tf_utils (in examples) is a very simple utility unit, to add useful little functions.

Please let me know if you find it useful, if you find bugs or if you want to contribute.

tensorflowforpascal's People

Contributors

zsoltszakaly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.