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
TokenMixup
TokenMixup-main/experiments/cct/src/utils/embedder.py
import torch.nn as nn class Embedder(nn.Module): def __init__(self, word_embedding_dim=300, vocab_size=100000, padding_idx=1, pretrained_weight=None, embed_freeze=False, *args, **kwargs): super(Embedder, ...
1,332
34.078947
96
py
TokenMixup
TokenMixup-main/experiments/cct/src/utils/utils.py
############################################################################### # This contains implementation of CCT + TokenMixup # # Code modified from https://github.com/SHI-Labs/Compact-Transformers # # Copyright MLV Lab @ Korea University # ...
8,124
35.111111
141
py
TokenMixup
TokenMixup-main/experiments/cct/src/utils/stochastic_depth.py
# Thanks to rwightman's timm package # github.com:rwightman/pytorch-image-models import torch import torch.nn as nn def drop_path(x, drop_prob: float = 0., training: bool = False): """ Obtained from: github.com:rwightman/pytorch-image-models Drop paths (Stochastic Depth) per sample (when applied in main ...
1,586
38.675
108
py
TokenMixup
TokenMixup-main/experiments/cct/src/utils/tokenizer.py
import torch import torch.nn as nn import torch.nn.functional as F class Tokenizer(nn.Module): def __init__(self, kernel_size, stride, padding, pooling_kernel_size=3, pooling_stride=2, pooling_padding=1, n_conv_layers=1, n_input_channels=3, ...
4,069
35.339286
95
py
TokenMixup
TokenMixup-main/experiments/cct/src/utils/utils_analysis.py
import numpy as np import torch import torch.nn.functional as F from math import ceil from scipy.optimize import linear_sum_assignment def distance(z, dist_type='l2'): '''Return distance matrix between vectors''' # z : (100, 2) with torch.no_grad(): diff = z.unsqueeze(1) - z.unsqueeze(0) ...
13,444
39.742424
100
py
TokenMixup
TokenMixup-main/experiments/cct/src/utils/helpers.py
import math import torch import torch.nn.functional as F import logging _logger = logging.getLogger('train') def resize_pos_embed(posemb, posemb_new, num_tokens=1): # Copied from `timm` by Ross Wightman: # github.com/rwightman/pytorch-image-models # Rescale the grid of position embeddings when loading fr...
2,068
44.977778
132
py
TokenMixup
TokenMixup-main/experiments/cct/src/text/cvt.py
import torch.nn as nn from ..utils.transformers import MaskedTransformerClassifier from ..utils.tokenizer import TextTokenizer from ..utils.embedder import Embedder __all__ = [ 'text_cvt_2', 'text_cvt_4', 'text_cvt_6', ] class TextCVT(nn.Module): def __init__(self, seq_len=64, ...
2,568
34.191781
90
py
TokenMixup
TokenMixup-main/experiments/cct/src/text/vit.py
import torch.nn as nn from ..utils.transformers import MaskedTransformerClassifier from ..utils.tokenizer import TextTokenizer from ..utils.embedder import Embedder __all__ = [ 'text_vit_2', 'text_vit_4', 'text_vit_6', ] class TextViTLite(nn.Module): def __init__(self, seq_len=64, ...
2,601
34.643836
90
py
TokenMixup
TokenMixup-main/experiments/cct/src/text/cct.py
import torch.nn as nn from ..utils.transformers import MaskedTransformerClassifier from ..utils.tokenizer import TextTokenizer from ..utils.embedder import Embedder __all__ = [ 'text_cct_2', 'text_cct_4', 'text_cct_6' ] class TextCCT(nn.Module): def __init__(self, seq_len=64, ...
3,063
34.627907
90
py
TokenMixup
TokenMixup-main/experiments/cct/src/text/transformer.py
import torch.nn as nn from ..utils.transformers import MaskedTransformerClassifier from ..utils.tokenizer import TextTokenizer from ..utils.embedder import Embedder __all__ = [ 'text_transformer_2', 'text_transformer_4', 'text_transformer_6', ] class TextTransformerLite(nn.Module): def __init__(self,...
1,806
30.155172
71
py
TokenMixup
TokenMixup-main/experiments/vit/train.py
######################################################################## # This contains implementation of ViT + TokenMixup # # Code modified from https://github.com/jeonsworld/ViT-pytorch # # Copyright MLV Lab @ Korea University # ############################...
20,123
42.938865
120
py
TokenMixup
TokenMixup-main/experiments/vit/models/modeling_resnet.py
# Copyright 2020 Google LLC # # 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 applicable law or agreed to in writing, ...
6,351
37.49697
132
py
TokenMixup
TokenMixup-main/experiments/vit/models/modeling.py
######################################################################## # This contains implementation of ViT + TokenMixup # # Code modified from https://github.com/jeonsworld/ViT-pytorch # # Copyright MLV Lab @ Korea University # ############################...
20,247
42.172708
155
py
TokenMixup
TokenMixup-main/experiments/vit/utils/utils.py
######################################################################## # This contains implementation of ViT + TokenMixup # # Code modified from https://github.com/jeonsworld/ViT-pytorch # # Copyright MLV Lab @ Korea University # ############################...
3,910
34.234234
125
py
TokenMixup
TokenMixup-main/experiments/vit/utils/data_utils.py
######################################################################## # This contains implementation of ViT + TokenMixup # # Code modified from https://github.com/jeonsworld/ViT-pytorch # # Copyright MLV Lab @ Korea University # ############################...
4,750
37.314516
113
py
TokenMixup
TokenMixup-main/experiments/vit/utils/scheduler.py
import logging import math from torch.optim.lr_scheduler import LambdaLR logger = logging.getLogger(__name__) class ConstantLRSchedule(LambdaLR): """ Constant learning rate schedule. """ def __init__(self, optimizer, last_epoch=-1): super(ConstantLRSchedule, self).__init__(optimizer, lambda _: 1....
3,034
44.984848
129
py
TokenMixup
TokenMixup-main/experiments/vit/utils/dist_util.py
import torch.distributed as dist def get_rank(): if not dist.is_available(): return 0 if not dist.is_initialized(): return 0 return dist.get_rank() def get_world_size(): if not dist.is_available(): return 1 if not dist.is_initialized(): return 1 return dist.get_...
711
21.967742
56
py
dice_rl
dice_rl-master/networks/value_network.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
4,033
36.700935
80
py
dice_rl
dice_rl-master/networks/policy_network.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
6,393
38.714286
84
py
dice_rl
dice_rl-master/networks/step_value_network.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
3,977
38.386139
80
py
dice_rl
dice_rl-master/google/estimators/importance_sampling_ci.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
22,937
41.794776
92
py
dice_rl
dice_rl-master/google/scripts/run_load_pytorch_policy.py
"""Load a pytorch policy from weights in a pkl file.""" import pickle from absl import app from absl import flags import numpy as np import tensorflow as tf from dice_rl.data.dataset import StepType import dice_rl.environments.env_policies as env_policies import google3.learning.deepmind.xmanager2.client.google as x...
1,987
30.555556
76
py
dice_rl
dice_rl-master/google/scripts/run_importance_sampling_ci.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
9,445
37.555102
120
py
dice_rl
dice_rl-master/google/scripts/run_yifan.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
7,034
37.867403
82
py
dice_rl
dice_rl-master/google/scripts/run_neural_q.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
5,172
38.48855
79
py
dice_rl
dice_rl-master/google/scripts/run_neural_teq_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
9,647
39.537815
80
py
dice_rl
dice_rl-master/google/scripts/run_onpolicy_saddle.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
6,521
35.640449
77
py
dice_rl
dice_rl-master/google/scripts/run_tabular_robust_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
7,420
39.774725
95
py
dice_rl
dice_rl-master/google/scripts/run_neural_robust.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
12,181
42.045936
90
py
dice_rl
dice_rl-master/google/scripts/run_saddle.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
5,360
36.229167
77
py
dice_rl
dice_rl-master/estimators/tabular_bayes_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
10,379
42.070539
82
py
dice_rl
dice_rl-master/estimators/neural_dual_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
10,695
39.824427
80
py
dice_rl
dice_rl-master/estimators/neural_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
15,671
40.570292
80
py
dice_rl
dice_rl-master/scripts/run_neural_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
9,357
37.510288
80
py
dice_rl
dice_rl-master/scripts/run_neural_bayes_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
10,879
37.175439
83
py
dice_rl
dice_rl-master/scripts/run_neural_coin_dice.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
10,603
42.818182
80
py
dice_rl
dice_rl-master/environments/env_policies.py
# Copyright 2020 Google LLC. # # 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 applicable law or agreed to in writing, ...
18,920
37.614286
91
py
CD-SGD
CD-SGD-master/tools/rec2idx.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,417
30.943925
77
py
CD-SGD
CD-SGD-master/tools/diagnose.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...
6,630
35.635359
136
py
CD-SGD
CD-SGD-master/tools/im2rec.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 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 Licens...
15,838
39.200508
114
py
CD-SGD
CD-SGD-master/tools/parse_log.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...
2,886
36.986842
151
py
CD-SGD
CD-SGD-master/tools/launch.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...
5,475
41.449612
98
py
CD-SGD
CD-SGD-master/tools/pip_package/setup.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,222
35.442623
85
py
CD-SGD
CD-SGD-master/tools/bandwidth/measure.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,103
40.243243
96
py
CD-SGD
CD-SGD-master/tools/caffe_translator/scripts/convert_caffe_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,271
42.213115
97
py
CD-SGD
CD-SGD-master/tools/accnn/acc_fc.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,665
34.546667
97
py
CD-SGD
CD-SGD-master/tools/accnn/utils.py
from __future__ import print_function # 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, Versio...
4,003
31.552846
111
py
CD-SGD
CD-SGD-master/tools/accnn/acc_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...
3,352
34.294737
104
py
CD-SGD
CD-SGD-master/tools/accnn/accnn.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,223
38.714286
113
py
CD-SGD
CD-SGD-master/tools/coreml/mxnet_coreml_converter.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 # "Li...
5,099
42.965517
117
py
CD-SGD
CD-SGD-master/tools/coreml/pip_package/setup.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,552
35.471429
81
py
CD-SGD
CD-SGD-master/tools/coreml/test/test_mxnet_converter.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...
31,519
30.806256
98
py
CD-SGD
CD-SGD-master/tools/coreml/test/test_mxnet_image.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 ...
5,232
35.594406
87
py
CD-SGD
CD-SGD-master/tools/coreml/test/test_mxnet_models.py
from __future__ import print_function # 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, Versio...
6,660
39.126506
111
py
CD-SGD
CD-SGD-master/tools/coreml/converter/_layers.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...
16,973
26.917763
127
py
CD-SGD
CD-SGD-master/tools/coreml/converter/_mxnet_converter.py
from __future__ import print_function # 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, Versio...
8,892
37.167382
181
py
CD-SGD
CD-SGD-master/tools/coreml/converter/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,583
29.117647
118
py
CD-SGD
CD-SGD-master/tools/caffe_converter/caffe_parser.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,801
33.170732
90
py
CD-SGD
CD-SGD-master/tools/caffe_converter/test_converter.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,646
41.245455
97
py
CD-SGD
CD-SGD-master/tools/caffe_converter/compare_layers.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...
14,618
38.725543
100
py
CD-SGD
CD-SGD-master/tools/caffe_converter/convert_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...
9,811
41.66087
89
py
CD-SGD
CD-SGD-master/tools/caffe_converter/caffe_proto_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...
8,298
39.482927
100
py
CD-SGD
CD-SGD-master/tools/caffe_converter/convert_symbol.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,452
39.278443
98
py
CD-SGD
CD-SGD-master/tools/caffe_converter/convert_caffe_modelzoo.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,220
43.300613
90
py
CD-SGD
CD-SGD-master/tools/caffe_converter/convert_mean.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,054
31.109375
73
py
CD-SGD
CD-SGD-master/python/setup.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,243
37.844444
128
py
CD-SGD
CD-SGD-master/python/mxnet/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...
22,312
29.316576
100
py
CD-SGD
CD-SGD-master/python/mxnet/visualization.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...
15,145
37.53944
98
py
CD-SGD
CD-SGD-master/python/mxnet/context.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,068
28.254839
97
py
CD-SGD
CD-SGD-master/python/mxnet/torch.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,715
35.5
99
py
CD-SGD
CD-SGD-master/python/mxnet/libinfo.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,762
40.417391
97
py
CD-SGD
CD-SGD-master/python/mxnet/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...
43,060
40.645068
137
py
CD-SGD
CD-SGD-master/python/mxnet/name.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,762
31.721739
84
py
CD-SGD
CD-SGD-master/python/mxnet/log.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,988
33.171233
99
py
CD-SGD
CD-SGD-master/python/mxnet/recordio.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...
14,831
28.312253
95
py
CD-SGD
CD-SGD-master/python/mxnet/operator.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...
51,064
45.338475
128
py
CD-SGD
CD-SGD-master/python/mxnet/__init__.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...
2,335
26.482353
70
py
CD-SGD
CD-SGD-master/python/mxnet/initializer.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...
25,388
33.309459
97
py
CD-SGD
CD-SGD-master/python/mxnet/metric.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...
47,640
32.432281
100
py
CD-SGD
CD-SGD-master/python/mxnet/test_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...
77,406
37.206811
100
py
CD-SGD
CD-SGD-master/python/mxnet/rnn/rnn_cell.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...
59,484
40.366481
108
py
CD-SGD
CD-SGD-master/python/mxnet/rnn/rnn.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,294
34.204918
91
py
CD-SGD
CD-SGD-master/python/mxnet/ndarray/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...
1,081
37.642857
76
py
CD-SGD
CD-SGD-master/python/mxnet/ndarray/contrib.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,371
34.544954
100
py
CD-SGD
CD-SGD-master/python/mxnet/ndarray/sparse.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...
62,311
37.041514
100
py
CD-SGD
CD-SGD-master/python/mxnet/ndarray/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...
136,775
32.888999
151
py
CD-SGD
CD-SGD-master/python/mxnet/ndarray/register.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,390
36.594118
108
py
CD-SGD
CD-SGD-master/python/mxnet/symbol/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...
998
36
76
py
CD-SGD
CD-SGD-master/python/mxnet/symbol/symbol.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...
107,410
35.153147
100
py
CD-SGD
CD-SGD-master/python/mxnet/symbol/contrib.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...
32,338
43.11869
102
py
CD-SGD
CD-SGD-master/python/mxnet/symbol/register.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,845
36.184834
92
py
CD-SGD
CD-SGD-master/python/mxnet/module/bucketing_module.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...
22,981
41.246324
99
py
CD-SGD
CD-SGD-master/python/mxnet/module/module.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...
38,168
41.315965
104
py
CD-SGD
CD-SGD-master/python/mxnet/module/base_module.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...
48,602
43.712971
100
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/block.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...
45,352
38.063738
118
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/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...
14,679
34.544794
108
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/parameter.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...
37,646
39.876221
99
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/trainer.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,731
44.36092
112
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/nn/conv_layers.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...
53,737
44.234007
100
py
CD-SGD
CD-SGD-master/python/mxnet/gluon/nn/basic_layers.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...
28,192
39.046875
99
py