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
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/activations_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,238
34.856322
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/cifar100.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,135
32.904762
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/imdb.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
4,806
30.834437
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/cifar10.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,124
33.274194
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,290
45.107143
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/reuters.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
4,437
31.394161
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/boston_housing.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,054
33.25
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/datasets/mnist.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,475
31.8
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/pooling.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
21,337
34.802013
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/pooling_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,394
33.945355
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/convolutional.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
75,765
43.281707
104
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/core.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28,183
34.675949
94
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/lstm_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
11,737
34.143713
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/local.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
17,367
43.081218
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/simplernn_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,799
33.871795
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/convolutional_recurrent.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
24,296
39.973019
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/normalization_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,188
34.541096
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/embeddings.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,976
37.335165
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/convolutional_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
27,149
33.630102
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/merge.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
19,045
33.071556
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/local_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,107
29.771084
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/convolutional_recurrent_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,831
34.13253
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/noise.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,875
32.770115
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/advanced_activations.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
7,199
31.286996
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/wrappers.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
13,506
33.194937
132
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/noise_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,668
31.096154
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/recurrent.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
49,954
38.490119
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/advanced_activations_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,240
35.145161
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,129
50.95122
82
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/core_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,854
29.978836
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/wrappers_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
7,191
33.247619
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/normalization.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,200
42.0625
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/gru_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,691
33.317949
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/embeddings_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,388
31.726027
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/serialization_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,592
36.928571
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/serialization.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,832
43.265625
97
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/layers/merge_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
6,534
35.50838
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/wrappers/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
899
38.130435
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/wrappers/scikit_learn.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
12,732
34.666667
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/wrappers/scikit_learn_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,735
29.031414
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/engine/topology.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
101,540
35.407673
134
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/engine/training.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
84,011
37.858464
99
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/engine/training_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
25,285
33.733516
92
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/engine/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,415
44.677419
83
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/engine/topology_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
20,238
38.452242
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/generic_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
11,458
30.480769
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/data_utils_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
4,898
27.317919
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/layer_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
7,882
34.831818
81
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/data_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
20,100
29.595129
89
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/generic_utils_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,344
29.855263
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/vis_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,370
33.651613
114
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/conv_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,555
31.682353
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/utils/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,446
54.613636
96
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/preprocessing/image.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42,362
35.11509
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/preprocessing/image_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
7,455
32.890909
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/preprocessing/text_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2,522
32.64
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/preprocessing/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,046
40.88
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/preprocessing/sequence_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
3,939
38.4
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/vgg19_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,546
34.976744
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/xception_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,569
35.511628
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/vgg16.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
8,578
39.466981
145
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/vgg16_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,546
34.976744
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/imagenet_utils.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5,775
36.025641
105
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/resnet50_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,569
35.511628
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/vgg19.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
8,854
39.619266
145
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/inception_v3.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
14,330
35.558673
152
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/mobilenet_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,576
35.674419
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/resnet50.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
11,417
38.783972
148
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/inception_v3_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,591
36.023256
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/__init__.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,363
49.518519
87
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/imagenet_utils_test.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
4,840
33.578571
80
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/xception.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
12,314
39.114007
151
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/keras/python/keras/applications/mobilenet.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
27,690
41.21189
129
py
tensorflow-allreduce
tensorflow-allreduce-master/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
11,325
39.594982
88
py
DomainAdaptiveReID
DomainAdaptiveReID-master/selftraining.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Cheng Wang, L.Song """ from __future__ import print_function, absolute_import import argparse import time import os.path as osp import os import numpy as np import torch from torch import nn from torch.nn import init from torch.backends import cudnn from tor...
11,724
39.15411
111
py
DomainAdaptiveReID
DomainAdaptiveReID-master/source_train.py
from __future__ import print_function, absolute_import import argparse import os.path as osp import os import numpy as np import time import sys import torch from torch import nn from torch.backends import cudnn from torch.autograd import Variable from torch.utils.data import DataLoader from torchvision.transforms im...
12,066
37.676282
81
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/evaluators.py
from __future__ import print_function, absolute_import import time from collections import OrderedDict from collections import namedtuple import torch from .evaluation_metrics import cmc, mean_ap from .feature_extraction import extract_cnn_feature from .utils.meters import AverageMeter def extract_features(model, d...
4,691
35.092308
91
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/trainers.py
from __future__ import print_function, absolute_import import time import torch from torch.autograd import Variable from .evaluation_metrics import accuracy from .loss import OIMLoss, TripletLoss from .utils.meters import AverageMeter class BaseTrainer(object): def __init__(self, model, criterions, print_freq=1...
2,900
31.965909
81
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/dist_metric.py
from __future__ import absolute_import import torch from .evaluators import extract_features from .metric_learning import get_metric class DistanceMetric(object): def __init__(self, algorithm='euclidean', *args, **kwargs): super(DistanceMetric, self).__init__() self.algorithm = algorithm ...
926
28.903226
63
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/models/inception.py
from __future__ import absolute_import import torch from torch import nn from torch.nn import functional as F from torch.nn import init __all__ = ['InceptionNet', 'inception'] def _make_conv(in_planes, out_planes, kernel_size=3, stride=1, padding=1, bias=False): conv = nn.Conv2d(in_planes, out_p...
5,050
34.076389
80
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/models/resnet.py
from __future__ import absolute_import import math import torch from torch import nn from torch.nn import functional as F from torch.nn import init from torch.autograd import Variable import torchvision # from torch_deform_conv.layers import ConvOffset2D from reid.utils.serialization import load_checkpoint, save_check...
3,457
29.60177
83
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/feature_extraction/cnn.py
from __future__ import absolute_import from collections import OrderedDict import torch from torch.autograd import Variable from ..utils import to_torch def extract_cnn_feature(model, inputs, modules=None): model.eval() inputs = to_torch(inputs) inputs = Variable(inputs, volatile=True) if modules is...
768
24.633333
56
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/feature_extraction/database.py
from __future__ import absolute_import import h5py import numpy as np from torch.utils.data import Dataset class FeatureDatabase(Dataset): def __init__(self, *args, **kwargs): super(FeatureDatabase, self).__init__() self.fid = h5py.File(*args, **kwargs) def __enter__(self): return se...
1,311
24.230769
59
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/loss/triplet.py
from __future__ import absolute_import import torch from torch import nn from torch.autograd import Variable from torch.nn import functional as F from scipy.stats import norm import numpy as np class TripletLoss(nn.Module): def __init__(self, margin=0, num_instances=0, use_semi=True): super(TripletLoss, ...
2,008
35.527273
74
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/loss/oim.py
from __future__ import absolute_import import torch import torch.nn.functional as F from torch import nn, autograd class OIM(autograd.Function): def __init__(self, lut, momentum=0.5): super(OIM, self).__init__() self.lut = lut self.momentum = momentum def forward(self, inputs, target...
1,727
31.603774
80
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/utils/__init__.py
from __future__ import absolute_import import torch def to_numpy(tensor): if torch.is_tensor(tensor): return tensor.cpu().numpy() elif type(tensor).__module__ != 'numpy': raise ValueError("Cannot convert {} to numpy array" .format(type(tensor))) return tensor de...
594
26.045455
60
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/utils/serialization.py
from __future__ import print_function, absolute_import import json import os.path as osp import shutil import torch from torch.nn import Parameter from .osutils import mkdir_if_missing def read_json(fpath): with open(fpath, 'r') as f: obj = json.load(f) return obj def write_json(obj, fpath): m...
1,683
26.606557
78
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/utils/data/sampler.py
from __future__ import absolute_import from collections import defaultdict import numpy as np import torch from torch.utils.data.sampler import ( Sampler, SequentialSampler, RandomSampler, SubsetRandomSampler, WeightedRandomSampler) class RandomIdentitySampler(Sampler): def __init__(self, data_source, nu...
1,191
32.111111
79
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/utils/data/transforms.py
from __future__ import absolute_import from PIL import Image, ImageOps, ImageEnhance import random import math from torchvision.transforms import * class RectScale(object): def __init__(self, height, width, interpolation=Image.BILINEAR): self.height = height self.width = width self.interp...
3,312
33.873684
104
py
DomainAdaptiveReID
DomainAdaptiveReID-master/reid/evaluation_metrics/classification.py
from __future__ import absolute_import from ..utils import to_torch def accuracy(output, target, topk=(1,)): output, target = to_torch(output), to_torch(target) maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.vi...
521
25.1
73
py
TESTR
TESTR-main/setup.py
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import glob import os from setuptools import find_packages, setup import torch from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension torch_ver = [int(x) for x in torch.__version__.split(".")[:2]] assert...
2,822
28.715789
100
py
TESTR
TESTR-main/tools/train_net.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Detection Training Script. This scripts reads a given config file and runs the training or evaluation. It is an entry point that is made to train standard models in detectron2. In order to let one script support training of many models, this s...
11,120
36.444444
105
py
TESTR
TESTR-main/adet/evaluation/text_evaluation.py
import contextlib import copy import io import itertools import json import logging import numpy as np import os import re import torch from collections import OrderedDict from fvcore.common.file_io import PathManager from pycocotools.coco import COCO from detectron2.utils import comm from detectron2.data import Metad...
12,534
37.100304
411
py
TESTR
TESTR-main/adet/layers/pos_encoding.py
import torch import numpy as np import torch.nn as nn class PositionalEncoding1D(nn.Module): def __init__(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None): """ :param channels: The last dimension of the tensor you want to apply pos emb to. """ super().__init__...
3,339
39.240964
105
py
TESTR
TESTR-main/adet/layers/deformable_transformer.py
# ------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Modified from DETR (ht...
25,087
45.033028
196
py
TESTR
TESTR-main/adet/layers/ms_deform_attn.py
# ------------------------------------------------------------------------------------------------ # Deformable DETR # Copyright (c) 2020 SenseTime. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # -------------------------------------------------------------------------...
8,664
55.266234
153
py
TESTR
TESTR-main/adet/utils/comm.py
import torch import torch.nn.functional as F import torch.distributed as dist from detectron2.utils.comm import get_world_size def reduce_sum(tensor): world_size = get_world_size() if world_size < 2: return tensor tensor = tensor.clone() dist.all_reduce(tensor, op=dist.ReduceOp.SUM) retur...
2,880
26.701923
68
py
TESTR
TESTR-main/adet/utils/misc.py
from typing import List, Optional import torch from torch.functional import Tensor from torchvision.ops.boxes import box_area import torch.distributed as dist def is_dist_avail_and_initialized(): if not dist.is_available(): return False if not dist.is_initialized(): return False return Tru...
5,560
29.387978
110
py
TESTR
TESTR-main/adet/data/dataset_mapper.py
import copy import logging import os.path as osp import numpy as np import torch from fvcore.common.file_io import PathManager from PIL import Image from pycocotools import mask as maskUtils from detectron2.data import detection_utils as utils from detectron2.data import transforms as T from detectron2.data.dataset_m...
8,053
36.460465
97
py
TESTR
TESTR-main/adet/data/detection_utils.py
import logging import numpy as np import torch from detectron2.data import transforms as T from detectron2.data.detection_utils import \ annotations_to_instances as d2_anno_to_inst from detectron2.data.detection_utils import \ transform_instance_annotations as d2_transform_inst_anno def transform_instance_a...
3,300
27.95614
87
py