repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
OD-SGD | OD-SGD-master/example/gluon/actor_critic.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,393 | 35.31405 | 85 | py |
OD-SGD | OD-SGD-master/example/gluon/data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,261 | 36.241026 | 110 | py |
OD-SGD | OD-SGD-master/example/gluon/lstm_crf.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 9,573 | 40.445887 | 103 | py |
OD-SGD | OD-SGD-master/example/gluon/dcgan.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 8,796 | 36.118143 | 192 | py |
OD-SGD | OD-SGD-master/example/gluon/super_resolution.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,631 | 38.138462 | 121 | py |
OD-SGD | OD-SGD-master/example/gluon/image_classification.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,940 | 44.926923 | 114 | py |
OD-SGD | OD-SGD-master/example/gluon/image_classification-org.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 8,929 | 43.427861 | 114 | py |
OD-SGD | OD-SGD-master/example/gluon/mnist.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,568 | 34.418605 | 83 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/main.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 8,888 | 37.816594 | 136 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/download_images.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 938 | 43.714286 | 108 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/utils.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,338 | 31.188596 | 133 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,148 | 31.928571 | 101 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/net.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 13,587 | 40.05136 | 150 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/dataset/download_dataset.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,312 | 37.617647 | 96 | py |
OD-SGD | OD-SGD-master/example/gluon/style_transfer/models/download_model.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 951 | 42.272727 | 124 | py |
OD-SGD | OD-SGD-master/example/gluon/word_language_model/model.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,871 | 43.184615 | 83 | py |
OD-SGD | OD-SGD-master/example/gluon/word_language_model/data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,249 | 32.58209 | 63 | py |
OD-SGD | OD-SGD-master/example/gluon/word_language_model/train.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,205 | 39.256983 | 99 | py |
OD-SGD | OD-SGD-master/example/gluon/tree_lstm/main.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,543 | 38.915344 | 112 | py |
OD-SGD | OD-SGD-master/example/gluon/tree_lstm/dataset.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,765 | 33.061404 | 97 | py |
OD-SGD | OD-SGD-master/example/gluon/tree_lstm/tree_lstm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,953 | 50.316129 | 99 | py |
OD-SGD | OD-SGD-master/example/gluon/tree_lstm/scripts/download.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,654 | 32.842593 | 91 | py |
OD-SGD | OD-SGD-master/example/svm_mnist/svm_mnist.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,094 | 39.544554 | 106 | py |
OD-SGD | OD-SGD-master/example/rnn-time-major/bucket_io.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 9,851 | 36.037594 | 122 | py |
OD-SGD | OD-SGD-master/example/rnn-time-major/rnn_cell_demo.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 8,165 | 47.319527 | 110 | py |
OD-SGD | OD-SGD-master/example/recommenders/movielens_data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,419 | 34.072464 | 89 | py |
OD-SGD | OD-SGD-master/example/recommenders/randomproj.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,044 | 39.033113 | 97 | py |
OD-SGD | OD-SGD-master/example/recommenders/recotools.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,781 | 38.6 | 84 | py |
OD-SGD | OD-SGD-master/example/recommenders/symbol_alexnet.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,864 | 44.47619 | 181 | py |
OD-SGD | OD-SGD-master/example/recommenders/negativesample.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,181 | 38.679558 | 87 | py |
OD-SGD | OD-SGD-master/example/recommenders/crossentropy.py | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | 4,785 | 35.534351 | 83 | py |
OD-SGD | OD-SGD-master/example/recommenders/matrix_fact.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,993 | 30.650794 | 105 | py |
OD-SGD | OD-SGD-master/example/nce-loss/toy_softmax.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,069 | 33.786325 | 94 | py |
OD-SGD | OD-SGD-master/example/nce-loss/wordvec.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,272 | 36.118343 | 94 | py |
OD-SGD | OD-SGD-master/example/nce-loss/wordvec_subwords.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,303 | 36.80602 | 118 | py |
OD-SGD | OD-SGD-master/example/nce-loss/toy_nce.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,728 | 35.376923 | 94 | py |
OD-SGD | OD-SGD-master/example/nce-loss/lstm_word.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 10,132 | 40.871901 | 94 | py |
OD-SGD | OD-SGD-master/example/nce-loss/nce.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 5,195 | 37.488889 | 110 | py |
OD-SGD | OD-SGD-master/example/utils/get_data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,232 | 35.325843 | 82 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/parallel_actor_critic/model.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 5,039 | 39 | 79 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/parallel_actor_critic/config.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,710 | 36.195652 | 77 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/parallel_actor_critic/train.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,860 | 36.906077 | 79 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/a3c/a3c.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 9,642 | 38.520492 | 158 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/a3c/launcher.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 5,327 | 37.330935 | 129 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/a3c/rl_data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 5,410 | 30.277457 | 98 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/a3c/sym.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,903 | 51.888889 | 100 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/ddpg/ddpg.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 13,263 | 38.126844 | 98 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/ddpg/utils.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,074 | 23.6 | 70 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/ddpg/run.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,576 | 28.754717 | 62 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/ddpg/policies.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,502 | 25.740458 | 74 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/ddpg/qfuncs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,979 | 27.653846 | 80 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/operators.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 5,828 | 37.348684 | 110 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/replay_memory.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 12,085 | 51.777293 | 105 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/base.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 13,774 | 42.181818 | 116 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/atari_game.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,148 | 40.323699 | 100 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/dqn_demo.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,746 | 47.742739 | 122 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/utils.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,572 | 31.69209 | 103 | py |
OD-SGD | OD-SGD-master/example/reinforcement-learning/dqn/dqn_run_test.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,528 | 42.270115 | 118 | py |
OD-SGD | OD-SGD-master/example/caffe/caffe_net.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,310 | 47.546154 | 159 | py |
OD-SGD | OD-SGD-master/example/caffe/train_model.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,386 | 36.177966 | 100 | py |
OD-SGD | OD-SGD-master/example/caffe/data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,722 | 32.845455 | 77 | py |
OD-SGD | OD-SGD-master/example/dec/dec.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,846 | 43.84 | 116 | py |
OD-SGD | OD-SGD-master/example/profiler/profiler_matmul.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,489 | 35.617647 | 94 | py |
OD-SGD | OD-SGD-master/example/profiler/profiler_executor.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,276 | 38.23125 | 114 | py |
OD-SGD | OD-SGD-master/example/profiler/profiler_ndarray.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,382 | 33.598784 | 101 | py |
OD-SGD | OD-SGD-master/example/profiler/profiler_imageiter.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,784 | 36.978723 | 117 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/symbol_fcnxs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 12,341 | 58.623188 | 121 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/init_fcnxs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 4,639 | 42.364486 | 97 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/image_segmentaion.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,705 | 34.605263 | 97 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/data.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 6,068 | 42.35 | 139 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/solver.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 7,190 | 48.9375 | 116 | py |
OD-SGD | OD-SGD-master/example/fcn-xs/fcn_xs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,773 | 40.472527 | 99 | py |
OD-SGD | OD-SGD-master/example/python-howto/debug_conv.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,319 | 32 | 89 | py |
OD-SGD | OD-SGD-master/example/python-howto/multiple_outputs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,505 | 38.631579 | 68 | py |
OD-SGD | OD-SGD-master/example/python-howto/monitor_weights.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 1,987 | 35.814815 | 74 | py |
OD-SGD | OD-SGD-master/example/python-howto/data_iter.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,610 | 32.909091 | 85 | py |
OD-SGD | OD-SGD-master/example/gan/dcgan.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 10,758 | 34.863333 | 121 | py |
OD-SGD | OD-SGD-master/example/numpy-ops/ndarray_softmax.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,603 | 31.178571 | 92 | py |
OD-SGD | OD-SGD-master/example/numpy-ops/numpy_softmax.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,779 | 31.705882 | 74 | py |
OD-SGD | OD-SGD-master/example/numpy-ops/weighted_logistic_regression.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,168 | 43.633803 | 156 | py |
OD-SGD | OD-SGD-master/example/numpy-ops/custom_softmax.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,248 | 34.315217 | 79 | py |
OD-SGD | OD-SGD-master/ps-lite/docs/conf.py | # -*- coding: utf-8 -*-
#
# ps-lite documentation build configuration file, created by
# sphinx-quickstart on Sun Mar 20 20:12:23 2016.
#
# Mu: additional changes
# - add breathe into extensions
# - change html theme into sphinx_rtd_theme
# - add sphnix_util.py
# - add .md into source_suffix
# - add setup() a... | 10,101 | 30.968354 | 80 | py |
OD-SGD | OD-SGD-master/benchmark/python/sparse/dot.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 19,756 | 43.298206 | 123 | py |
OD-SGD | OD-SGD-master/benchmark/python/sparse/memory_benchmark.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,792 | 39.351064 | 100 | py |
OD-SGD | OD-SGD-master/benchmark/python/sparse/sparse_end2end.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 12,696 | 40.224026 | 128 | py |
OD-SGD | OD-SGD-master/benchmark/python/sparse/cast_storage.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 3,691 | 35.92 | 107 | py |
OD-SGD | OD-SGD-master/benchmark/python/sparse/sparse_op.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 9,168 | 36.272358 | 117 | py |
OD-SGD | OD-SGD-master/dmlc-core/doc/conf.py | # -*- coding: utf-8 -*-
#
# documentation build configuration file, created by
# sphinx-quickstart on Thu Jul 23 19:40:08 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All confi... | 5,609 | 32.795181 | 88 | py |
GANSeg | GANSeg-main/gen_img.py | import argparse
import importlib
import json
import os
import torch
import torch.utils.data
from torchvision import transforms
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from models.heatmaps import gen_heatmaps
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt... | 2,782 | 46.982759 | 152 | py |
GANSeg | GANSeg-main/visualization.py | import argparse
import importlib
import json
import math
import os
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import torch
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from datasets.datasets import get_dataloader
import numpy as np
from matplotlib import ... | 1,731 | 31.679245 | 134 | py |
GANSeg | GANSeg-main/train_seg.py | import argparse
import importlib
import json
import os
import torch
import torch.utils.data
from torchvision import transforms
from sklearn import linear_model
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from datasets.datasets import get_dataloader
from models.heatmaps import gen_g... | 4,979 | 35.888889 | 122 | py |
GANSeg | GANSeg-main/train_gan.py | import argparse
import importlib
import json
import math
import os
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import torch
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from datasets.datasets import get_dataloader
import numpy as np
from visualization impo... | 13,068 | 43.152027 | 158 | py |
GANSeg | GANSeg-main/test_seg.py | import argparse
import importlib
import json
import os
import torch
import torch.utils.data
from torchvision import transforms
from sklearn import linear_model
import torch.nn.functional as F
from torch.utils.tensorboard import SummaryWriter
from datasets.datasets import get_dataloader
from models.heatmaps import gen_g... | 7,738 | 43.734104 | 141 | py |
GANSeg | GANSeg-main/gen_mask.py | import argparse
import importlib
import json
import math
import os
import numpy as np
import torch
from types import MethodType
from datasets.datasets import get_dataloader
from models.heatmaps import gen_heatmaps
import matplotlib.pyplot as plt
from visualization import label2rgb, get_pt_color
from PIL import Image
... | 2,369 | 37.852459 | 118 | py |
GANSeg | GANSeg-main/models/discriminator.py | import torch
from torch import nn
import torch.nn.functional as F
import math
class DiscriminatorBlock(nn.Module):
def __init__(self, in_channels, out_channels, downsample=True):
super().__init__()
self.conv_res = nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=(2 if downsample else 1))... | 2,056 | 33.283333 | 108 | py |
GANSeg | GANSeg-main/models/segmenter.py | import torch
import math
from torch import nn
import torchvision
import torch.nn.functional as F
from torchvision import models
class Segmenter(nn.Module):
def __init__(self, hyper_paras):
super().__init__()
self.model = models.segmentation.deeplabv3_resnet50(num_classes=hyper_paras['n_classes'],
... | 511 | 29.117647 | 97 | py |
GANSeg | GANSeg-main/models/generator.py | import torch
from torch import nn
import torch.nn.functional as F
from models.heatmaps import gen_heatmaps_extend, gen_heatmaps_linear_extend, gen_grid2d_extend, gen_grid2d
from models.sync_batchnorm import SynchronizedBatchNorm2d
import math
import numpy as np
class SPADE(nn.Module):
def __init__(self, input_cha... | 21,905 | 47.572062 | 157 | py |
GANSeg | GANSeg-main/models/heatmaps.py | import torch
import torch.nn.functional as F
from torch.nn.utils import spectral_norm
import math
def gen_grid2d(grid_size, device='cpu', left_end=-1, right_end=1):
x = torch.linspace(left_end, right_end, grid_size).to(device)
x, y = torch.meshgrid([x, x])
grid = torch.cat((x.reshape(-1, 1), y.reshape(-1,... | 3,456 | 43.320513 | 123 | py |
GANSeg | GANSeg-main/models/sync_batchnorm/replicate.py | # -*- coding: utf-8 -*-
# File : replicate.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 27/01/2018
#
# This file is part of Synchronized-BatchNorm-PyTorch.
# https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
# Distributed under MIT License.
import functools
from torch.nn.parallel.dat... | 3,249 | 32.854167 | 115 | py |
GANSeg | GANSeg-main/models/sync_batchnorm/unittest.py | # -*- coding: utf-8 -*-
# File : unittest.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 27/01/2018
#
# This file is part of Synchronized-BatchNorm-PyTorch.
# https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
# Distributed under MIT License.
import unittest
import torch
class TorchTes... | 745 | 24.724138 | 59 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.