NETWORK API REFACTORING - TO DO LIST
Dear Contributors,
@DEKHTIARJonathan @akaraspt @luomai @lgarithm @JingqingZ @fangde etal.
As we discussed previously, TensorLayer 2.0 should support both eager and graph mode. The new API design is here luomai/tensorlayer2-design#7
To make the refactoring faster, I simply fork tensorlayer/tensorlayer into zsdonghao/tensorlayer2: https://github.com/zsdonghao/tensorlayer2 , we can merge the branch back to tensorlayer/tensorlayer when the refactoring is finished. In doing so, the contributions will be in may commits rather than only 1.
Work to be done
Layers
tl.models
- core.py
- vgg.py
- mobilenetv1.py
Examples
- basic_tutorials
Too many basic tutorials, some codes can be removed.
- data_process
- tutorial_fast_affine_transform.py
- tutorial_image_preprocess.py removed by @zsdonghao
- tutorial_tf_dataset_voc.py
- tutorial_tfrecord.py
- tutorial_tfrecord2.py
- tutorial_tfrecord3.py
- database
- distributed_training
- tutorial_cifar10_distributed_trainer.py
- tutorial_mnist_distributed_trainer.py
- keras_tfslim
- tutorial_keras.py
- tutorial_tfslim.py removed by @ChrisWu1997
- pretrained_cnn
- tutorial_inceptionV3_tfslim.py
- tutorial_mobilenet.py removed by @ChrisWu1997 2019/04/23
- tutorial_models_mobilenetv1.py
- tutorial_models_squeezenetv1.py
- tutorial_models_vgg.py
- tutorial_models_vgg_static.py
- tutorial_models_vgg16.py
- tutorial_models_vgg19.py
- tutorial_squeezenet.py removed by @ChrisWu1997 2019/04/23
- tutorial_vgg16.py removed by @warshallrho 2019/04/30
- tutorial_vgg19.py removed by @warshallrho 2019/04/30
- quantized_net
- tutorial_binarynet_cifar10_tfrecord.py
- tutorial_binarynet_mnist_cnn.py
- tutorial_dorefanet_cifar10_tfrecord.py
- tutorial_dorefanet_mnist_cnn.py
- tutorial_quanconv_cifar10.py
- tutorial_quanconv_mnist.py
- tutorial_ternaryweight_cifar10_tfrecord.py
- tutorial_ternaryweight_mnist_cnn.py
- reinforcement_learning
- tutorial_atari_pong.py @zsdonghao 2019/01/21
- tutorial_bipedalwalker_a3c_continuous_action.py
- tutorial_cartpole_ac.py @zsdonghao 2019/02/17
- tutorial_frozenlake_dqn.py @zsdonghao 2019/02/16
- tutorial_frozenlake_q_table.py @zsdonghao 2019/02/16
- text_classification
- text_generation
- tutorial_generate_text.py
- text_ptb
Are they duplicated?
- tutorial_ptb_lstm_state_is_tuple.py
- tutorial_ptb_lstm.py
- text_word_embedding
- tutorial_word2vec_basic.py @JingqingZ 2019/02/21 2019/03/19
Others
- tl.activation.py
- tl.cli
- tl.decorators
- tl.logging
- tl.optimizers
- tl.third_party
- tl.array_ops
- tl.cost
- tl.db [WIP] @ChrisWu1997
- tl.distributed
- tl.initializers
- tl.iterate
- tl.lazy_imports
- tl.nlp @OliverZijia @JingqingZ
- tl.package_info
- tl.prepro
- tl.rein
- tl.utils
- tl.visualize
Unittests Status:
- performance_test
- layers
- test_activations.py @JingqingZ 2019/03/06
- models
Unittests Status (Pending):
Some testing codes can be removed.
- test_array_ops.py
- test_decorators.py
- test_documentation.py
- test_layers_basic.py
- test_layers_flow_control.py removed in favour of eager mode @zsdonghao 2018/12/04 (🀄️remember to change CN docs)
- test_layers_importer.py
- test_layers_normalization.py
- test_layers_padding.py
- test_layers_spatial_transformer.py
- test_layers_stack.py
- test_layers_super_resolution.py
- test_layers_time_distributed.py
- test_logging.py
- test_logging_hyperdash.py
- test_mnist_simple.py
- test_model_compilednetwork.py
- test_models.py
- test_network_custom_2d.py
- test_network_custom_input_layers.py
- test_network_custom_multiple_inputs.py
- test_network_custom_multiple_outputs.py
- test_network_sequential_1d.py
- test_network_sequential_2d.py
- test_network_sequential_3d.py
- test_network_sequential_rnn.py
- test_optimizer_amsgrad.py
- test_pydocstyle.py
- test_reuse_mlp.py
- test_tf_layers.py
- test_timeout.py
- test_utils_predict.py
- test_yapf_format.py
tl.files
All save/load methods are also wrapped as class method in model core.
- save_hdf5_graph
- load_hdf5_graph
- save_weights_to_hdf5
- load_hdf5_to_weights_in_order
- load_hdf5_to_weights
- save_npz([save_list, name, sess]) @ChrisWu1997 2019/02/21 --> save_npz([save_list, name]) @ChrisWu1997 2019/03/21
- load_npz([path, name]) @ChrisWu1997 2019/02/21
- assign_params(sess, params, network) --> assign_weights (🀄️remember to change CN docs) @ChrisWu1997 2019/02/22
- load_and_assign_npz([sess, name, network]) @ChrisWu1997 2019/02/21 --> load_and_assign_npz([name, network]) @ChrisWu1997 2019/03/21
- save_npz_dict([save_list, name, sess]) @ChrisWu1997 2019/02/22 --> save_npz_dict([save_list, name]) @ChrisWu1997 2019/03/21
- load_and_assign_npz_dict([name, sess]) --> ([name, network]) @ChrisWu1997 2019/03/21
- save_ckpt([sess, mode_name, save_dir, …]) @ChrisWu1997 2019/02/22
- load_ckpt([sess, mode_name, save_dir, …]) @ChrisWu1997 2019/02/22
NETWORK API REFACTORING - TO DO LIST
Design Docs
Refactoring Codes
Dear Contributors,
@DEKHTIARJonathan @akaraspt @luomai @lgarithm @JingqingZ @fangde etal.
As we discussed previously, TensorLayer 2.0 should support both eager and graph mode. The new API design is here luomai/tensorlayer2-design#7
To make the refactoring faster, I simply fork tensorlayer/tensorlayer into zsdonghao/tensorlayer2: https://github.com/zsdonghao/tensorlayer2 , we can merge the branch back to tensorlayer/tensorlayer when the refactoring is finished. In doing so, the contributions will be in may commits rather than only 1.
Work to be done
Layers
dilation_rateinstead. (🀄️remember to change CN docs)tl.models
Examples
Too many basic tutorials, some codes can be removed.
Are they duplicated?
Others
tutorial_mnist_simple.py@ChrisWu1997 2019/04/17Unittests Status:
Unittests Status (Pending):
Some testing codes can be removed.
tl.files
All save/load methods are also wrapped as class method in model core.