Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
E4B5 TensorLayer 2.0 · Issue #900 · tensorlayer/TensorLayer · GitHub
Nothing Special   »   [go: up one dir, main page]

Skip to content

TensorLayer 2.0 #900

@zsdonghao

Description

@zsdonghao

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

tl.models

  • core.py
    • Model:
      • refactored @JingqingZ 2019/01/28 @ChrisWu1997 2019/02/16 2019/02/22
      • tested @ChrisWu1997 2019/03/21
      • documentation @ChrisWu1997 2019/03/21
  • vgg.py
  • mobilenetv1.py
    • MobileNet:
      • refactored @ChrisWu1997 2019/04/23
      • tested @ChrisWu1997 2019/04/23
      • documentation @ChrisWu1997 2019/04/23
    • SqueezeNet:
      • refactored @ChrisWu1997 2019/04/23
      • tested @ChrisWu1997 2019/04/23
      • documentation @ChrisWu1997 2019/04/23

Examples

  • basic_tutorials
    Too many basic tutorials, some codes can be removed.
    • Static model example MNIST @JingqingZ 2019/01/28 2019/03/24
    • Dynamic model example MNIST @JingqingZ 2019/01/28 2019/03/24
    • Static model example CIFAR10 (with dataset API) @ChrisWu1997 2019/03/24
    • Siamese example MNIST @ChrisWu1997 2019/03/26
    • tutorial_mnist_float16.py removed by @ChrisWu1997
    • tutorial_mnist_simple.py removed by @ChrisWu1997
  • data_process
    • tutorial_fast_affine_transform.py
      • refactored @ChrisWu1997 2019/04/11
      • tested @ChrisWu1997 2019/04/11
    • tutorial_image_preprocess.py removed by @zsdonghao
    • tutorial_tf_dataset_voc.py
      • refactored @ChrisWu1997 2019/04/11
      • tested @ChrisWu1997 2019/04/11
    • tutorial_tfrecord.py
      • refactored @ChrisWu1997 2019/04/11
      • tested @ChrisWu1997 2019/04/11
    • tutorial_tfrecord2.py
      • refactored @ChrisWu1997 2019/04/11
      • tested @ChrisWu1997 2019/04/11
    • tutorial_tfrecord3.py
      • refactored
      • tested
  • database
    • refactored
    • tested
  • distributed_training
    • tutorial_cifar10_distributed_trainer.py
      • refactored
      • tested
    • tutorial_mnist_distributed_trainer.py
      • refactored
      • tested
  • keras_tfslim
    • tutorial_keras.py
      • refactored @ChrisWu1997 2019/04/11
      • tested @ChrisWu1997 2019/04/11
    • 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
      • refactored @ChrisWu1997 2019/04/23
      • tested @ChrisWu1997 2019/04/23
    • tutorial_models_squeezenetv1.py
      • refactored @ChrisWu1997 2019/04/23
      • tested @ChrisWu1997 2019/04/23
    • 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
      • refactored
      • tested
    • tutorial_binarynet_mnist_cnn.py
      • refactored
      • tested
    • tutorial_dorefanet_cifar10_tfrecord.py
      • refactored
      • tested
    • tutorial_dorefanet_mnist_cnn.py
      • refactored
      • tested
    • tutorial_quanconv_cifar10.py
      • refactored
      • tested
    • tutorial_quanconv_mnist.py
      • refactored
      • tested
    • tutorial_ternaryweight_cifar10_tfrecord.py
      • refactored
      • tested
    • tutorial_ternaryweight_mnist_cnn.py
      • refactored
      • tested
  • reinforcement_learning
    • tutorial_atari_pong.py @zsdonghao 2019/01/21
      • refactored
      • tested
    • tutorial_bipedalwalker_a3c_continuous_action.py
      • refactored
      • tested
    • tutorial_cartpole_ac.py @zsdonghao 2019/02/17
      • refactored
      • tested
    • tutorial_frozenlake_dqn.py @zsdonghao 2019/02/16
      • refactored
      • tested
    • tutorial_frozenlake_q_table.py @zsdonghao 2019/02/16
      • refactored
      • tested
  • text_classification
    • tutorial_imdb_fasttext.py @JingqingZ 2019/03/14
      • refactored
      • tested
  • text_generation
    • tutorial_generate_text.py
      • refactored
      • tested
  • text_ptb
    Are they duplicated?
    • tutorial_ptb_lstm_state_is_tuple.py
      • refactored
      • tested
    • tutorial_ptb_lstm.py
      • refactored
      • tested
  • text_word_embedding
    • tutorial_word2vec_basic.py @JingqingZ 2019/02/21 2019/03/19
      • refactored
      • tested

Others

  • tl.activation.py
  • tl.cli
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.decorators
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.logging
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.optimizers
    • refactored
  • tl.third_party
    • refactored
  • tl.array_ops
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.cost
    • refactored @ChrisWu1997 2019/04/12
    • documentation @ChrisWu1997 2019/04/12
  • tl.db [WIP] @ChrisWu1997
    • refactored
  • tl.distributed
    • refactored
  • tl.initializers
    • refactored @ChrisWu1997 2019/04/12
    • tested @ChrisWu1997 2019/04/12
    • documentation @ChrisWu1997 2019/04/12
  • tl.iterate
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.lazy_imports
    • refactored no update needed @ChrisWu1997 2019/04/12
  • tl.nlp @OliverZijia @JingqingZ
    • refactored
  • tl.package_info
    • refactored
  • tl.prepro
    • refactored @ChrisWu1997 2019/04/11
  • tl.rein
    • refactored
  • tl.utils
    • refactored @ChrisWu1997 2019/04/17
    • tested by tutorial_mnist_simple.py @ChrisWu1997 2019/04/17
    • documentation @ChrisWu1997 2019/04/17
  • tl.visualize
    • refactored no update needed @ChrisWu1997 2019/04/12

Unittests Status:

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
    • created
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • load_hdf5_to_weights_in_order
    • created
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • load_hdf5_to_weights
    • created
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • save_npz([save_list, name, sess]) @ChrisWu1997 2019/02/21 --> save_npz([save_list, name]) @ChrisWu1997 2019/03/21
    • refactored
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • load_npz([path, name]) @ChrisWu1997 2019/02/21
    • refactored
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • assign_params(sess, params, network) --> assign_weights (🀄️remember to change CN docs) @ChrisWu1997 2019/02/22
    • refactored
    • tested
  • load_and_assign_npz([sess, name, network]) @ChrisWu1997 2019/02/21 --> load_and_assign_npz([name, network]) @ChrisWu1997 2019/03/21
    • refactored
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • save_npz_dict([save_list, name, sess]) @ChrisWu1997 2019/02/22 --> save_npz_dict([save_list, name]) @ChrisWu1997 2019/03/21
    • refactored
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • load_and_assign_npz_dict([name, sess]) --> ([name, network]) @ChrisWu1997 2019/03/21
    • refactored
    • tested @ChrisWu1997 2019/03/26
    • documentation @ChrisWu1997 2019/03/26
  • save_ckpt([sess, mode_name, save_dir, …]) @ChrisWu1997 2019/02/22
    • refactored
    • tested
  • load_ckpt([sess, mode_name, save_dir, …]) @ChrisWu1997 2019/02/22
    • refactored
    • tested

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

      0