Skip to content

PerkzZheng/flink-mnist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flink-mnist

Run MNIST inference in Apache Flink

Usage

  1. Package the project.
mvn clean package # you could get MNISTInference.jar in target/ folder
  1. Download the native libraries of JCuda and JCublas to lib/ folder of your Flink distribution
./add-jcuda-dependency.sh <your_flink_dist>
  1. Prepare image data. You could download the training data or test data. Then, decompress it by gzip xxx.gz.

  2. Configure to enable GPU plugin, please refer to user document.

  3. Start the Flink cluster and run the MNIST inference job.

cd $FLINK_HOME
bin/start-cluster.sh
bin/flink run path/to/MNISTInference.jar --image-file path/to/imagefile

About

Run MNIST inference in Apache Flink

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.2%
  • Shell 1.8%