Skip to content

rockzhuang/tensorflow

 
 

Tensorflow C++ Examples

Check commit history here: https://github.com/rockzhuang/tensorflow/commits?author=rockzhuang

----------------------------------------------------------------------------------------------

Firstly, run './configure'


1) TFRecordDataset and Iterator

cp tensorflow/examples/cc/dataset/data/test1.tfrecord /tmp/

bazel run -c opt //tensorflow/examples/cc/dataset:tfrecord_test

bazel run -c opt //tensorflow/examples/cc/dataset:tfrecord_test2


2) toydnn

cp -r tensorflow/examples/cc/dnn/data /tmp/

bazel run -c opt //tensorflow/examples/cc/dnn:toydnn


3) RNN

bazel run -c opt //tensorflow/examples/cc/rnn:rnn_ops_test

bazel run -c opt //tensorflow/examples/cc/rnn:rnn_ops_restore

bazel run -c opt //tensorflow/examples/cc/rnn:rnn_ops_restore_by_clientsession

bazel run -c opt //tensorflow/examples/cc/rnn:lstm_ops_test

bazel run -c opt //tensorflow/examples/cc/rnn:lstm_multi_layers

bazel run -c opt //tensorflow/examples/cc/rnn:lstm_multi_layers_autograd


4) Magenta melody basic_rnn module

cp -r tensorflow/examples/cc/magenta/data /tmp/

bazel run -c opt //tensorflow/examples/cc/magenta:melody_basic_rnn

bazel run -c opt //tensorflow/examples/cc/magenta:melody_lstm_train

bazel run -c opt //tensorflow/examples/cc/magenta:melody_lstm_autograd

bazel run -c opt //tensorflow/examples/cc/magenta:melody_cudnn_rnn


5) GeneratorDataset

bazel run -c opt //tensorflow/examples/cc/dataset:generatordataset_test


6) CNN

sh tensorflow/examples/cc/cnn/mnist/data/download_data.sh

bazel run -c opt //tensorflow/examples/cc/cnn/mnist:mnist

bazel run -c opt //tensorflow/examples/cc/cnn/mnist:mnist_rkz


7) Reinforcement Learning Tuner

bazel run -c opt //tensorflow/examples/cc/magenta:melody_rl_tuner


8) GAN

sh tensorflow/examples/cc/cnn/mnist/data/download_data.sh

bazel run -c opt //tensorflow/examples/cc/gan/dcgan:dcgan

bazel run -c opt //tensorflow/examples/cc/gan/dcgan:dcgan_multi_gpus

Packages

No packages published

Languages

  • C++ 63.1%
  • Python 21.6%
  • MLIR 5.6%
  • Starlark 3.8%
  • HTML 2.4%
  • Go 1.1%
  • Other 2.4%