Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Keras-MXNet CNN for training on CPU is relatively slower #56

Open
@karan6181

Description

@karan6181

Hi,

I am running the keras/examples/mnist_cnn.py and keras/exaples/cifar10_cnn.py and I can see that the training time it took on every epoch on Keras using MXNet backend is higher as compared to Keras using Tensorflow backend when ran on CPU.

The image data is already a channels_first when using MXNet backend and channels_last when using TensorFlow backend, which means, no transpose overhead operation.

Below are the pieces of information:

Machine: MacBook Pro(2.5GHz intel core i7 and 16 GB 2133 MHz RAM)

Python version: 2.7.14

MXNet version: 1.1.0

Tensorflow version: 1.5.0

Keras version: 2.1.4

Results:

Backend mnist_cnn.py cifar10_cnn.py
Keras+MXNet training performance 272 sec/epoch 388 sec/epoch
Keras+TensorFlow training performance 150 sec/epoch 239 sec/epoch

Thank-You!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions