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 |
|---|---|---|---|---|---|---|
FARM | FARM-master/farm/modeling/biadaptive_model.py | import copy
import json
import logging
import os
from argparse import Namespace
from pathlib import Path
import multiprocessing
import numpy
import torch
from torch import nn
from farm.data_handler.processor import TextSimilarityProcessor
from farm.data_handler.data_silo import DataSilo
from farm.modeling.language_mo... | 25,514 | 47.6 | 158 | py |
FARM | FARM-master/farm/modeling/adaptive_model.py | import copy
import json
import logging
import os
from pathlib import Path
import multiprocessing
import numpy
import torch
from torch import nn
from transformers import AutoConfig
from transformers.convert_graph_to_onnx import convert, quantize as quantize_model
from farm.data_handler.processor import Processor
from... | 33,024 | 43.993188 | 158 | py |
FARM | FARM-master/farm/modeling/language_model.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. Team and deepset Team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 m... | 81,743 | 44.23741 | 168 | py |
FARM | FARM-master/farm/data_handler/data_silo.py | import copy
import logging
import torch.multiprocessing as mp
from contextlib import ExitStack
from functools import partial
import random
from pathlib import Path
from itertools import chain, groupby
import numpy as np
from sklearn.utils.class_weight import compute_class_weight
from torch.utils.data import Dataset, S... | 58,387 | 45.487261 | 149 | py |
FARM | FARM-master/farm/data_handler/dataloader.py | from math import ceil
from torch.utils.data import DataLoader, Dataset, Sampler
import torch
class NamedDataLoader(DataLoader):
"""
A modified version of the PyTorch DataLoader that returns a dictionary where the key is
the name of the tensor and the value is the tensor itself.
"""
def __init__(... | 3,405 | 35.234043 | 112 | py |
FARM | FARM-master/farm/data_handler/dataset.py | from typing import Iterable
import numpy as np
import numbers
import logging
import torch
from torch.utils.data import Dataset, ConcatDataset, TensorDataset
from farm.utils import flatten_list
logger = logging.getLogger(__name__)
def convert_features_to_dataset(features):
"""
Converts a list of feature dicti... | 3,683 | 43.385542 | 104 | py |
FARM | FARM-master/farm/data_handler/processor.py | import abc
import inspect
import json
import logging
import os
import random
from abc import ABC
from inspect import signature
from pathlib import Path
from random import randint
import numpy as np
from numpy.random import random as random_float
from sklearn.preprocessing import StandardScaler
from tokenizers import E... | 147,457 | 46.798379 | 227 | py |
ECGadv | ECGadv-master/cloud_eval_diff.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#### Module import
import keras.backend as K
import keras
from keras import backend
from keras.models import load_model
import tensorflow as tf
from cleverhans.utils_keras import KerasModelWrapper
from cleverhans import utils
import csv
import scipy.io
import glob
import... | 4,398 | 27.380645 | 128 | py |
ECGadv | ECGadv-master/cloud_eval_diffl2.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#### Module import
import keras.backend as K
import keras
from keras import backend
from keras.models import load_model
import tensorflow as tf
from cleverhans.utils_keras import KerasModelWrapper
from cleverhans import utils
import csv
import scipy.io
import glob
impor... | 4,429 | 27.397436 | 135 | py |
ECGadv | ECGadv-master/LDM_UniversalEval.py | import numpy as np
from keras.models import load_model
from cleverhans import utils
from random import randrange
from os import walk
import re
import scipy.io
from numpy import genfromtxt
import sys
import csv
from scipy import signal
def preprocess(x, maxlen):
x = np.nan_to_num(x)
x = x[0, 0:maxlen]
x = x... | 4,383 | 25.895706 | 129 | py |
ECGadv | ECGadv-master/PrepareAttackDataset.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import scipy.io
import glob
import csv
import numpy as np
import matplotlib.pyplot as plt
import keras.backend as K
from keras.models import load_model
from keras.utils.np_utils import to_categorical
from keras import metrics
import tensorflow as tf
# Parameters
dataDi... | 3,183 | 25.983051 | 115 | py |
ECGadv | ECGadv-master/LDM_Attack.py | import keras.backend as K
import keras
from keras.models import load_model
import tensorflow as tf
from cleverhans.utils_keras import KerasModelWrapper
from cleverhans import utils
import csv
import scipy.io
import numpy as np
import sys
from LDM_EOT import LDM_EOT_ATTACK
import math
# parameters
dataDir = './traini... | 3,325 | 25.396825 | 141 | py |
ECGadv | ECGadv-master/cloud_eval_l2.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#### Module import
import keras.backend as K
import keras
from keras import backend
from keras.models import load_model
import tensorflow as tf
from cleverhans.utils_keras import KerasModelWrapper
from cleverhans import utils
import csv
import scipy.io
import glob
import... | 4,381 | 27.270968 | 124 | py |
ECGadv | ECGadv-master/cloud_model/metric_compare.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 17 15:15:44 2018
@author: chenhx1992
"""
from keras.utils import plot_model
import keras.backend as K
import keras
from keras import backend
from keras.models import load_model
from keras.utils.np_utils import to_categorical
from keras import metri... | 3,439 | 28.152542 | 98 | py |
VESPA | VESPA-master/docs/conf.py | # -*- coding: utf-8 -*-
#
# vespa documentation build configuration file, created by
# sphinx-quickstart on Wed Mar 18 14:47:37 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... | 8,854 | 30.400709 | 79 | py |
tensorflow | tensorflow-master/tensorflow/virtual_root_template_v1.__init__.py | # Copyright 2019 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,228 | 30.559701 | 80 | py |
tensorflow | tensorflow-master/tensorflow/virtual_root_template_v2.__init__.py | # Copyright 2019 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,936 | 29.757813 | 80 | py |
tensorflow | tensorflow-master/tensorflow/api_template.__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... | 8,292 | 36.695455 | 159 | py |
tensorflow | tensorflow-master/tensorflow/compat_template_v1.__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... | 3,557 | 40.858824 | 83 | py |
tensorflow | tensorflow-master/tensorflow/compat_template.__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... | 3,911 | 39.329897 | 104 | py |
tensorflow | tensorflow-master/tensorflow/api_template_v1.__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... | 8,826 | 37.047414 | 96 | py |
tensorflow | tensorflow-master/tensorflow/tools/pip_package/setup.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... | 16,555 | 38.513126 | 117 | py |
tensorflow | tensorflow-master/tensorflow/tools/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | """Copyright 2023 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 applicable law or ... | 216,614 | 33.55887 | 87 | py |
tensorflow | tensorflow-master/tensorflow/tools/api/tests/module_test.py | # Copyright 2019 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,542 | 29.638554 | 80 | py |
tensorflow | tensorflow-master/tensorflow/tools/api/tests/api_compatibility_test.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... | 22,620 | 38.34087 | 80 | py |
tensorflow | tensorflow-master/tensorflow/tools/api/lib/python_object_to_proto_visitor.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,429 | 35.451613 | 119 | py |
tensorflow | tensorflow-master/tensorflow/tools/docs/generate2.py | # Copyright 2018 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,009 | 32.880208 | 111 | py |
tensorflow | tensorflow-master/tensorflow/tools/docs/doc_controls.py | # Copyright 2018 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,784 | 20.097561 | 80 | py |
tensorflow | tensorflow-master/tensorflow/tools/docs/tf_doctest.py | # Copyright 2019 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,113 | 30.901345 | 95 | py |
tensorflow | tensorflow-master/tensorflow/tools/docs/base_dir.py | # Copyright 2018 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,420 | 34.943089 | 120 | py |
tensorflow | tensorflow-master/tensorflow/tools/docs/generate2_test.py | # Copyright 2018 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,314 | 32.826531 | 81 | py |
tensorflow | tensorflow-master/tensorflow/tools/compatibility/renames_v2.py | # Copyright 2018 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... | 61,168 | 36.899009 | 84 | py |
tensorflow | tensorflow-master/tensorflow/tools/compatibility/all_renames_v2.py | # Copyright 2019 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,018 | 45.075506 | 80 | py |
tensorflow | tensorflow-master/tensorflow/tools/compatibility/tf_upgrade_v2.py | # Copyright 2018 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... | 104,497 | 38.492819 | 80 | py |
tensorflow | tensorflow-master/tensorflow/tools/compatibility/tf_upgrade_v2_test.py | # Copyright 2018 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... | 102,326 | 40.749082 | 110 | py |
tensorflow | tensorflow-master/tensorflow/tools/compatibility/module_deprecations_v2.py | # Copyright 2019 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,641 | 38.432836 | 80 | py |
tensorflow | tensorflow-master/tensorflow/dtensor/python/d_variable.py | # Copyright 2022 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... | 10,049 | 39.853659 | 80 | py |
tensorflow | tensorflow-master/tensorflow/core/function/capture/restore_captures.py | # Copyright 2023 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,840 | 39.846154 | 106 | py |
tensorflow | tensorflow-master/tensorflow/python/__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... | 3,474 | 36.771739 | 81 | py |
tensorflow | tensorflow-master/tensorflow/python/estimator/keras.py | # Copyright 2018 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,165 | 39.206897 | 86 | py |
tensorflow | tensorflow-master/tensorflow/python/tools/api/generator/create_python_api.py | # Copyright 2017 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... | 33,563 | 38.164527 | 83 | py |
tensorflow | tensorflow-master/tensorflow/python/tools/api/generator/doc_srcs.py | # Copyright 2018 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,676 | 34.165414 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/tools/api/generator/create_python_api_test.py | # Copyright 2017 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,526 | 34.862637 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/checkpoint/checkpoint.py | """Utilities for saving/loading Trackable objects."""
# Copyright 2017 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.o... | 113,190 | 40.938125 | 116 | py |
tensorflow | tensorflow-master/tensorflow/python/checkpoint/checkpoint_management.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... | 37,069 | 40.887006 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/debug/examples/v1/debug_keras.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,461 | 32.61165 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/debug/examples/v1/debug_mnist_v1.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... | 8,089 | 33.279661 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/debug/examples/v2/debug_mnist_v2.py | # Copyright 2019 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,966 | 32.058091 | 88 | py |
tensorflow | tensorflow-master/tensorflow/python/training/learning_rate_decay.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,378 | 46.551724 | 98 | py |
tensorflow | tensorflow-master/tensorflow/python/training/momentum.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,770 | 37.093137 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/saver.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... | 76,574 | 40.280323 | 150 | py |
tensorflow | tensorflow-master/tensorflow/python/training/checkpoint_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... | 22,798 | 38.858392 | 92 | py |
tensorflow | tensorflow-master/tensorflow/python/training/adam.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,646 | 40.601974 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/rmsprop.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,711 | 38.234568 | 84 | py |
tensorflow | tensorflow-master/tensorflow/python/training/adagrad.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,507 | 37.306122 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/optimizer.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... | 54,068 | 38.84451 | 112 | py |
tensorflow | tensorflow-master/tensorflow/python/training/adadelta.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,300 | 35.688442 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/training_util.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... | 15,153 | 34.740566 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/experimental/mixed_precision_test.py | # Copyright 2019 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,614 | 40.418269 | 99 | py |
tensorflow | tensorflow-master/tensorflow/python/training/experimental/loss_scale.py | # Copyright 2019 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,066 | 36.592511 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/training/experimental/mixed_precision.py | # Copyright 2019 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,604 | 49.62249 | 99 | py |
tensorflow | tensorflow-master/tensorflow/python/training/experimental/mixed_precision_global_state.py | # Copyright 2019 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,525 | 36.701493 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/autograph/core/config.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,911 | 29.83871 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/util/tf_export.py | # Copyright 2017 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,948 | 32.133017 | 95 | py |
tensorflow | tensorflow-master/tensorflow/python/util/keras_deps.py | # Copyright 2020 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,206 | 32.40625 | 85 | py |
tensorflow | tensorflow-master/tensorflow/python/util/object_identity.py | """Utilities for collecting objects based on "is" comparison."""
# Copyright 2017 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://w... | 6,992 | 25.289474 | 85 | py |
tensorflow | tensorflow-master/tensorflow/python/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... | 1,440 | 35.025 | 79 | py |
tensorflow | tensorflow-master/tensorflow/python/layers/base.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... | 944 | 40.086957 | 79 | py |
tensorflow | tensorflow-master/tensorflow/python/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... | 1,925 | 38.306122 | 79 | py |
tensorflow | tensorflow-master/tensorflow/python/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... | 1,028 | 29.264706 | 79 | py |
tensorflow | tensorflow-master/tensorflow/python/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... | 1,341 | 37.342857 | 79 | py |
tensorflow | tensorflow-master/tensorflow/python/summary/summary.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... | 38,201 | 43.628505 | 117 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/backend_config.py | # Copyright 2019 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,099 | 26.702703 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/losses.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... | 80,186 | 35.986624 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/callbacks.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... | 110,515 | 37.201175 | 104 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/combinations.py | # Copyright 2020 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,797 | 34.495327 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/testing_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... | 37,469 | 33.376147 | 88 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizers.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,297 | 38.834586 | 113 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v1.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... | 29,827 | 33.845794 | 90 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/keras_parameterized.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... | 17,664 | 35.878914 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/regularizers.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,725 | 32.577836 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/constraints.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,083 | 33.232295 | 106 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/backend.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... | 211,957 | 30.8638 | 112 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/callbacks_v1.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,867 | 40.049587 | 105 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/models.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... | 31,810 | 41.471295 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/metrics.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... | 131,754 | 34.523052 | 115 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/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... | 18,981 | 30.323432 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/__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,414 | 38.305556 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/optimizer_v2.py | # Copyright 2018 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... | 58,650 | 38.548887 | 103 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.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... | 39,987 | 36.406922 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/ftrl.py | # Copyright 2018 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,007 | 40.383459 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/gradient_descent.py | # Copyright 2020 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,107 | 35.829016 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/legacy_learning_rate_decay.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... | 29,725 | 37.356129 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/nadam.py | # Copyright 2018 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... | 9,372 | 41.03139 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/adamax.py | # Copyright 2018 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,799 | 40.052632 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/adam.py | # Copyright 2020 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,485 | 41.414079 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/rmsprop.py | # Copyright 2020 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,139 | 41.941176 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/adagrad.py | # Copyright 2018 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,804 | 38.33526 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/optimizer_v2/adadelta.py | # Copyright 2018 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,207 | 39.842105 | 80 | py |
tensorflow | tensorflow-master/tensorflow/python/keras/legacy_tf_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... | 19,780 | 40.820296 | 80 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.