Git Product home page Git Product logo

tensorflow-wrapper-compare's Introduction

Comparsion of TensorFlow Wrappers

Run Keras, TensorLayer and Tflearn with same model and data on a same GPU machine.

The parameter initialization may have slightly different, but would not effect the speed.

Feel free to PUSH !

Speed of MLP

GPU: GTX980

TensorFlow: r0.10

Data: MNIST train:50k val:10k test:10k

Model: 784-800-800-10

Num of epochs: 200

Batch size: 500

Keras: 282.475250s = 1.41 s/epoch

TensorLayer: 116.670947s = 0.58 s/epoch

Tflearn:

Arcyfelix's test

Setup

GPU: GTX970

Driver Version: 375.39

TensorFlow: 1.0.1

Data: MNIST train: 50k val: 10k test: 10k

Speed of MLP

Num of epochs: 200 Batch size: 500 FC-x = Fully Connected / Dense with Relu activation with x number of neurons DP = Dropout

Architecture / Library Keras TFLearn TensorLayer
INPUT + FC-800 + DP + FC-800 + DP + OUTPUT 173.825s 337.312s To be tested
INPUT + FC-2000 + DP + FC-2000 + DP + OUTPUT 377.443s 477.034s To be tested
INPUT + FC-4000 + DP + FC-4000 + DP + OUTPUT 1007.613s 872.662s To be tested
INPUT + FC-4000 + DP + FC-4000 + FC-4000 + DP + OUTPUT 1715.068s 1313.363s To be tested

Speed of CNN

Num of epochs: 20 Batch size: 100 Conv2d[kernel-x, kernel-y]-filters = Convolutional layer with padding = 'same'

Architecture / Library Keras TFLearn TensorLayer
INPUT + Conv2d[3,3]-8 + Conv2d[3,3]-8 + FC-100 + DP + FC-100 + DP + OUTPUT 79.999s 84.487s To be tested
INPUT + Conv2d[3,3]-32 + Conv2d[3,3]-32 + FC-100 + DP + FC-100 + DP + OUTPUT 132.741s 125.306s To be tested
INPUT + Conv2d[3,3]-64 + Conv2d[3,3]-64 + FC-100 + DP + FC-100 + DP + OUTPUT 230.574s 204.685s To be tested
INPUT + Conv2d[3,3]-128 + Conv2d[3,3]-128 + FC-100 + DP + FC-100 + DP + OUTPUT 477.009s 407.489s To be tested
INPUT + Conv2d[3,3]-256 + Conv2d[3,3]-256 + FC-100 + DP + FC-100 + DP + OUTPUT 1186.775s 1037.954s To be tested

Speed of LSTM

tensorflow-wrapper-compare's People

Contributors

theoneandonlywoj avatar wagamamaz avatar

Watchers

 avatar  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.