repo_name
stringlengths
9
109
hexsha
stringlengths
40
40
code
stringlengths
547
141k
apis
list
file_path
stringlengths
6
143
api_extract
stringlengths
142
58.4k
tadasdanielius/P5-Vehicle-Detection-And-Tracking
38513e91d863f7fff50703349aacbe5d5bbfae39
from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Convolution2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense, Lambda, ELU from keras.optimizers import Adam from sklearn.model_selection import train_test_split from keras.mo...
[ "tensorflow.device", "tensorflow.concat", "tensorflow.shape", "tensorflow.slice", "sklearn.model_selection.train_test_split", "numpy.concatenate", "tensorflow.name_scope", "numpy.zeros" ]
sdc/detection/cnn_classifier.py
[(22, 'tensorflow.shape', 'tf.shape', (['data'], {}), True, 'import tensorflow as tf\n'), (23, 'tensorflow.concat', 'tf.concat', (['(0)', '[shape[:1] // parts, shape[1:]]'], {}), True, 'import tensorflow as tf\n'), (24, 'tensorflow.concat', 'tf.concat', (['(0)', '[shape[:1] // parts, shape[1:] * 0]'], {}), True, 'impor...
LSanselme/kerod
cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902
# Copyright 2017 The TensorFlow Authors and modified by Emilien Garreau. 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....
[ "tensorflow.shape", "tensorflow.logical_or", "tensorflow.reshape", "tensorflow.equal", "tensorflow.cast", "tensorflow.random.shuffle", "tensorflow.map_fn", "tensorflow.where", "tensorflow.logical_not", "tensorflow.size", "tensorflow.logical_and" ]
src/kerod/core/sampling_ops.py
[(55, 'tensorflow.where', 'tf.where', (['indicator'], {}), True, 'import tensorflow as tf\n'), (56, 'tensorflow.random.shuffle', 'tf.random.shuffle', (['indices'], {}), True, 'import tensorflow as tf\n'), (57, 'tensorflow.reshape', 'tf.reshape', (['indices', '[-1]'], {}), True, 'import tensorflow as tf\n'), (64, 'tenso...
luoyi1hao/ACRN_Chest_X-ray_IA
b2ecaf88e6b1bb59101fd2d611bf9d1e6716367a
from data import DataHandler from models import ACRegNet import tensorflow as tf from utils import get_random_batch, read_config_file, create_dir RUN_IN_GPU = False def train_acregnet_model(config): tf.reset_default_graph() tf_config = tf.ConfigProto() if RUN_IN_GPU: tf_config.gpu_options.allow...
[ "tensorflow.ConfigProto", "tensorflow.reset_default_graph", "tensorflow.Session" ]
acregnet/train_acregnet.py
[(11, 'tensorflow.reset_default_graph', 'tf.reset_default_graph', ([], {}), True, 'import tensorflow as tf\n'), (12, 'tensorflow.ConfigProto', 'tf.ConfigProto', ([], {}), True, 'import tensorflow as tf\n'), (17, 'tensorflow.Session', 'tf.Session', ([], {'config': 'tf_config'}), True, 'import tensorflow as tf\n'), (19, ...
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
# 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...
[ "tensorflow.contrib.layers.python.ops.sparse_feature_cross_op.sparse_feature_cross", "tensorflow.python.ops.sparse_ops.sparse_tensor_to_dense", "tensorflow.python.platform.test.main", "tensorflow.python.client.session.Session", "numpy.equal", "numpy.not_equal", "tensorflow.python.framework.constant_op.c...
tensorflow/contrib/layers/python/kernel_tests/sparse_feature_cross_op_test.py
[(437, 'tensorflow.python.platform.test.main', 'test.main', ([], {}), False, 'from tensorflow.python.platform import test\n'), (349, 'tensorflow.python.framework.constant_op.constant', 'constant_op.constant', (['[[359], [359 + 1024]]'], {}), False, 'from tensorflow.python.framework import constant_op\n'), (351, 'tensor...
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
# 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...
[ "tensorflow.python.ops.array_ops.concat", "tensorflow.python.ops.array_ops.squeeze", "tensorflow.contrib.layers.fully_connected", "tensorflow.python.framework.ops.device" ]
tensorflow/contrib/tensor_forest/hybrid/python/layers/fully_connected.py
[(35, 'tensorflow.python.framework.ops.device', 'ops.device', (['self.device_assigner'], {}), False, 'from tensorflow.python.framework import ops\n'), (37, 'tensorflow.contrib.layers.fully_connected', 'layers.fully_connected', (['data', 'self.params.layer_size'], {}), False, 'from tensorflow.contrib import layers\n'), ...
calebchoo/modulabs
314d9cd9b607460f8bfea80fc828b1521ca18443
# 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...
[ "numpy.multiply", "numpy.arange", "tensorflow.contrib.learn.python.learn.datasets.base.Datasets", "numpy.dtype", "numpy.random.shuffle", "numpy.frombuffer", "tensorflow.python.framework.dtypes.as_dtype", "numpy.zeros", "tensorflow.python.platform.gfile.Open", "tensorflow.contrib.learn.python.learn...
tensorflow/contrib/learn/python/learn/datasets/mnist.py
[(60, 'numpy.zeros', 'numpy.zeros', (['(num_labels, num_classes)'], {}), False, 'import numpy\n'), (188, 'tensorflow.contrib.learn.python.learn.datasets.base.maybe_download', 'base.maybe_download', (['TRAIN_IMAGES', 'train_dir', '(SOURCE_URL + TRAIN_IMAGES)'], {}), False, 'from tensorflow.contrib.learn.python.learn.dat...
darkxaze/PINNs
f344a907cf8b585e5f667465178c4442b907024d
""" @author: Maziar Raissi """ import sys #sys.path.insert(0, '../../Utilities/') sys.path.append('F:/PINNs-master/PINN/src') import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import scipy.io from scipy.interpolate import griddata import time from itertools import product, combinations from mp...
[ "numpy.asscalar", "numpy.abs", "numpy.random.seed", "numpy.random.choice", "numpy.linspace", "numpy.meshgrid", "numpy.reshape", "numpy.tile", "numpy.linalg.norm", "numpy.std", "matplotlib.pyplot.subplot", "numpy.random.randn", "matplotlib.gridspec.GridSpec", "tensorflow.set_random_seed", ...
mycode/run_NavierStokes.py
[(7, 'sys.path.append', 'sys.path.append', (['"""F:/PINNs-master/PINN/src"""'], {}), False, 'import sys\n'), (21, 'numpy.random.seed', 'np.random.seed', (['(1234)'], {}), True, 'import numpy as np\n'), (22, 'tensorflow.set_random_seed', 'tf.set_random_seed', (['(1234)'], {}), True, 'import tensorflow as tf\n'), (54, 'n...
egonrian/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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...
[ "tensorflow.image.random_flip_left_right", "tensorflow.shape", "tensorflow.zeros", "tensorflow.maximum", "tensorflow.random.uniform", "tensorflow.equal", "tensorflow.expand_dims", "tensorflow.squeeze", "tensorflow.ones_like", "tensorflow.image.random_crop", "tensorflow.pad", "tensorflow.tile" ...
flax_models/cifar/datasets/augmentation.py
[(28, 'absl.flags.DEFINE_integer', 'flags.DEFINE_integer', (['"""cutout_length"""', '(16)', '"""Length (in pixels) of the cutout patch. Default value of 16 is used to get SOTA on cifar10/cifar100"""'], {}), False, 'from absl import flags\n'), (50, 'tensorflow.image.random_flip_left_right', 'tf.image.random_flip_left_ri...
muchemwal/models
49fd0a8a61b0e5dab196014bf47de7f62d97c884
import os import io import time import base64 import functools from PIL import Image import numpy as np import tensorflow as tf import tensorflow_hub as hub from helpers import * os.environ["TFHUB_DOWNLOAD_PROGRESS"] = "True" class PythonPredictor: def __init__(self, config): # Import TF-Hub module ...
[ "tensorflow.squeeze" ]
tensorflow/super_resolution/syndicai.py
[(20, 'tensorflow_hub.load', 'hub.load', (['"""https://tfhub.dev/captain-pool/esrgan-tf2/1"""'], {}), True, 'import tensorflow_hub as hub\n'), (31, 'io.BytesIO', 'io.BytesIO', ([], {}), False, 'import io\n'), (30, 'tensorflow.squeeze', 'tf.squeeze', (['fake_image'], {}), True, 'import tensorflow as tf\n')]
ai-nikolai/Retrograph-1
54bd534d47218ca437c422a1abe5b1e995f55d71
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
[ "tensorflow.contrib.cluster_resolver.TPUClusterResolver", "tensorflow.metrics.accuracy", "tensorflow.nn.log_softmax", "tensorflow.FixedLenFeature", "tensorflow.reduce_sum", "tensorflow.gfile.GFile", "tensorflow.train.init_from_checkpoint", "tensorflow.contrib.data.parallel_interleave", "tensorflow.g...
training_utility/run_pretraining_adapter.py
[(84, 'tensorflow.flags.DEFINE_string', 'tf.flags.DEFINE_string', (['"""tpu_name"""', 'None', '"""The Cloud TPU to use for training. This should be either the name used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 url."""'], {}), True, 'import tensorflow as tf\n'), (90, 'tensorflow.flags.DEFINE_strin...
pizzahan/lingvo
9b85b7ba5d037701302efa807841c05223bc7d1d
# -*- coding: utf-8 -*- # 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 # # Un...
[ "tensorflow.strings.regex_replace", "tensorflow.not_equal", "tensorflow.strings.unicode_split", "tensorflow.concat", "tensorflow.while_loop", "tensorflow.gfile.Open", "tensorflow.TensorArray", "tensorflow.zeros", "tensorflow.shape", "tensorflow.equal", "tensorflow.strings.split", "tensorflow.r...
lingvo/core/wpm_encoder.py
[(67, 'lingvo.core.ops.py_x_ops.vocab_id_to_token', 'py_x_ops.vocab_id_to_token', (['token'], {'vocab': 'self._pieces'}), False, 'from lingvo.core.ops import py_x_ops\n'), (87, 'tensorflow.strings.unicode_split', 'tf.strings.unicode_split', (['word', '"""UTF-8"""'], {}), True, 'import tensorflow as tf\n'), (95, 'tensor...
pizzahan/lingvo
9b85b7ba5d037701302efa807841c05223bc7d1d
# 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...
[ "tensorflow.variable_scope", "tensorflow.stack", "tensorflow.name_scope" ]
lingvo/tasks/mt/layers.py
[(45, 'lingvo.core.layers_with_attention.TransformerLayer.Params', 'layers_with_attention.TransformerLayer.Params', ([], {}), False, 'from lingvo.core import layers_with_attention\n'), (48, 'lingvo.core.layers.LayerNorm.Params', 'layers.LayerNorm.Params', ([], {}), False, 'from lingvo.core import layers\n'), (73, 'tens...
MuAuan/cheating_DL
e8c543d83c304ca072b479cf34fe0a07b58ec6e3
#grad_cam #[keras-grad-cam/grad-cam.py](https://github.com/jacobgil/keras-grad-cam/blob/master/grad-cam.py) from keras.applications.vgg16 import (VGG16, preprocess_input, decode_predictions) from keras.models import Model from keras.preprocessing import image from keras.layers.core import Lambda from keras.models impo...
[ "numpy.expand_dims", "numpy.maximum", "numpy.minimum", "tensorflow.python.framework.ops.RegisterGradient", "numpy.clip", "numpy.min", "numpy.uint8", "numpy.squeeze", "tensorflow.cast", "tensorflow.gradients", "numpy.ones", "numpy.ndim", "numpy.max", "tensorflow.zeros_like", "numpy.mean",...
grad-cam_5category.py
[(136, 'keras.applications.vgg16.VGG16', 'VGG16', ([], {'weights': '"""imagenet"""'}), False, 'from keras.applications.vgg16 import VGG16, preprocess_input, decode_predictions\n'), (34, 'numpy.expand_dims', 'np.expand_dims', (['x'], {'axis': '(0)'}), True, 'import numpy as np\n'), (35, 'keras.applications.vgg16.preproc...
xuyuandong/sequence_behavior_ctr_model
e1bb71b4579456b1c6fbf3b432a84a3cb52611b7
import tensorflow as tf #from tensorflow.python.ops.rnn_cell import * #from tensorflow.python.ops.rnn_cell_impl import _Linear from tensorflow.contrib.rnn.python.ops.core_rnn_cell import * #from tensorflow import keras from tensorflow.python.ops import math_ops from tensorflow.python.ops import init_ops from tensorflo...
[ "tensorflow.concat", "tensorflow.python.ops.array_ops.split", "tensorflow.reduce_sum", "tensorflow.minimum", "tensorflow.tanh", "tensorflow.where", "tensorflow.python.ops.init_ops.constant_initializer", "tensorflow.while_loop", "tensorflow.layers.dense", "tensorflow.name_scope", "tensorflow.pyth...
script/utils.py
[(29, 'tensorflow.concat', 'tf.concat', (['[queries, facts, queries - facts, queries * facts]'], {'axis': '(-1)'}), True, 'import tensorflow as tf\n'), (30, 'tensorflow.layers.dense', 'tf.layers.dense', (['din_all', '(80)'], {'activation': 'tf.nn.sigmoid', 'name': "('f1_att' + stag)"}), True, 'import tensorflow as tf\n...
omshinde/dfc2019
2e48cc8442c2c33aef7e1a0de27041709ef160e8
from toposort import toposort import contextlib import numpy as np import tensorflow as tf import tensorflow.contrib.graph_editor as ge import time import sys sys.setrecursionlimit(10000) # refers back to current module if we decide to split helpers out util = sys.modules[__name__] # getting rid of "WARNING:tensorflow...
[ "tensorflow.get_default_graph", "tensorflow.contrib.graph_editor.filter_ts", "numpy.sqrt", "tensorflow.get_collection", "tensorflow.contrib.graph_editor.get_backward_walk_ops", "tensorflow.contrib.graph_editor.get_forward_walk_ops", "tensorflow.contrib.graph_editor.reroute_ts", "tensorflow.scatter_nd"...
track2/icnet/memory_saving_gradients.py
[(8, 'sys.setrecursionlimit', 'sys.setrecursionlimit', (['(10000)'], {}), False, 'import sys\n'), (61, 'tensorflow.contrib.graph_editor.get_backward_walk_ops', 'ge.get_backward_walk_ops', (['[y.op for y in ys]'], {'inclusive': '(True)'}), True, 'import tensorflow.contrib.graph_editor as ge\n'), (67, 'tensorflow.contrib...
changwoolee/gradient-rescaling-attention-model
2f1d819e8cee03a9d06312e700a5c474bed48c70
import tensorflow as tf from contextlib import contextmanager from PIL import Image from keras import backend as K from keras.utils.data_utils import OrderedEnqueuer def heteroscedastic_loss(attention=False, block_attention_gradient=False, mode='l2'): ''' Heteroscedastic loss.''' def h...
[ "tensorflow.ConfigProto", "tensorflow.exp", "tensorflow.Session" ]
util.py
[(49, 'keras.utils.data_utils.OrderedEnqueuer', 'OrderedEnqueuer', (['sequence'], {'use_multiprocessing': 'use_multiprocessing'}), False, 'from keras.utils.data_utils import OrderedEnqueuer\n'), (62, 'keras.backend.clear_session', 'K.clear_session', ([], {}), True, 'from keras import backend as K\n'), (67, 'tensorflow....
GingerBear/texar
46e006f9349893a3015cd937bee9914c516e26af
# Copyright 2018 The Texar 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 ...
[ "tensorflow.variable_scope", "tensorflow.argmax", "tensorflow.reshape", "tensorflow.greater" ]
texar/tf/modules/classifiers/conv_classifiers.py
[(63, 'texar.tf.modules.classifiers.classifier_base.ClassifierBase.__init__', 'ClassifierBase.__init__', (['self', 'hparams'], {}), False, 'from texar.tf.modules.classifiers.classifier_base import ClassifierBase\n'), (135, 'texar.tf.modules.encoders.conv_encoders.Conv1DEncoder.default_hparams', 'Conv1DEncoder.default_h...
GingerBear/texar
46e006f9349893a3015cd937bee9914c516e26af
# """ Unit tests for XLNet regressor. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import tensorflow as tf from texar.tf.modules.regressors.xlnet_regressor import XLNetRegressor from texar.t...
[ "tensorflow.placeholder", "tensorflow.test.main", "tensorflow.global_variables_initializer", "tensorflow.random_uniform", "numpy.random.randint" ]
texar/tf/modules/regressors/xlnet_regressor_test.py
[(160, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (28, 'tensorflow.placeholder', 'tf.placeholder', ([], {'dtype': 'tf.int32', 'shape': '[None, None]'}), True, 'import tensorflow as tf\n'), (30, 'texar.tf.modules.regressors.xlnet_regressor.XLNetRegressor.available_checkpoints',...
myelintek/results
11c38436a158c453e3011f8684570f7a55c03330
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
[ "numpy.all", "tensorflow.contrib.eager.run_test_in_graph_and_eager_modes", "tensorflow.test.main", "tensorflow.Session" ]
v0.5.0/google/research_v3.32/gnmt-tpuv3-32/code/gnmt/model/t2t/tensor2tensor/data_generators/problem_test.py
[(83, 'tensorflow.contrib.eager.run_test_in_graph_and_eager_modes', 'tf.contrib.eager.run_test_in_graph_and_eager_modes', ([], {}), True, 'import tensorflow as tf\n'), (93, 'tensorflow.contrib.eager.run_test_in_graph_and_eager_modes', 'tf.contrib.eager.run_test_in_graph_and_eager_modes', ([], {}), True, 'import tensorf...
mitchellgordon95/lottery-ticket-hypothesis
3b2abee4b1e9ba00fe8501ac86652e2604736405
# Copyright (C) 2018 Google Inc. # # 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, ...
[ "tensorflow.reset_default_graph", "tensorflow.Session" ]
lottery_ticket/mnist_fc/big_two_layer_exp.py
[(103, 'fire.Fire', 'fire.Fire', (['main'], {}), False, 'import fire\n'), (65, 'tensorflow.reset_default_graph', 'tf.reset_default_graph', ([], {}), True, 'import tensorflow as tf\n'), (66, 'tensorflow.Session', 'tf.Session', ([], {}), True, 'import tensorflow as tf\n'), (67, 'lottery_ticket.datasets.dataset_mnist.Data...
RandolphVI/Question-Difficulty-Prediction
77b4b83b5bc747c5074926d7a37545a5d46ed343
# -*- coding:utf-8 -*- __author__ = 'Randolph' import os import sys import time import logging sys.path.append('../') logging.getLogger('tensorflow').disabled = True import tensorflow as tf from utils import checkmate as cm from utils import data_helpers as dh from utils import param_parser as parser from sklearn.me...
[ "tensorflow.Graph", "tensorflow.train.latest_checkpoint", "sklearn.metrics.r2_score", "sklearn.metrics.mean_squared_error", "tensorflow.ConfigProto", "tensorflow.Session" ]
TF/TARNN/test_tarnn.py
[(9, 'sys.path.append', 'sys.path.append', (['"""../"""'], {}), False, 'import sys\n'), (18, 'utils.param_parser.parameter_parser', 'parser.parameter_parser', ([], {}), True, 'from utils import param_parser as parser\n'), (19, 'utils.data_helpers.get_model_name', 'dh.get_model_name', ([], {}), True, 'from utils import ...
alishameli/CS231n-Sample-Code-1
e47e593026c80530f7c387c4feca24f88c1618a2
import argparse import os import numpy as np import tensorflow as tf from matplotlib import pyplot as plt from PIL import Image import models def predict(model_data_path, image_path): # Default input size height = 228 width = 304 channels = 3 batch_size = 1 # Read image img = Image.o...
[ "matplotlib.pyplot.imshow", "numpy.asarray", "tensorflow.global_variables", "tensorflow.variables_initializer", "tensorflow.placeholder", "tensorflow.Session", "numpy.array", "matplotlib.pyplot.show", "matplotlib.pyplot.figure" ]
tensorflow/predict.py
[(19, 'PIL.Image.open', 'Image.open', (['image_path'], {}), False, 'from PIL import Image\n'), (25, 'tensorflow.placeholder', 'tf.placeholder', (['tf.float32'], {'shape': '(None, height, width, channels)'}), True, 'import tensorflow as tf\n'), (28, 'models.ResNet50UpProj', 'models.ResNet50UpProj', (["{'data': input_nod...
My-Technical-Architect/tensorflow
35cf4653e6fe15953e2e565afc5a0fd2ab4d5290
# 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...
[ "tensorflow.TensorShape", "tensorflow.shape", "tensorflow.placeholder", "tensorflow.test.main", "tensorflow.python.framework.tensor_util.constant_value", "tensorflow.random_normal" ]
tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py
[(123, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (103, 'tensorflow.placeholder', 'tf.placeholder', ([], {'dtype': 'tf.int32', 'shape': '[]'}), True, 'import tensorflow as tf\n'), (109, 'tensorflow.placeholder', 'tf.placeholder', ([], {'dtype': 'tf.int32', 'shape': '[1]'}), Tr...
gujralsanyam22/models
11ea5237818e791a5717716d5413977f4c4db1e3
# 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...
[ "tensorflow.sparse.to_dense", "tensorflow.zeros", "tensorflow.io.decode_png", "tensorflow.stack", "tensorflow.shape", "tensorflow.io.parse_single_example", "tensorflow.cast", "tensorflow.io.decode_image", "tensorflow.io.VarLenFeature", "tensorflow.io.FixedLenFeature", "tensorflow.zeros_like", ...
official/vision/detection/dataloader/tf_example_decoder.py
[(61, 'tensorflow.io.decode_image', 'tf.io.decode_image', (["parsed_tensors['image/encoded']"], {'channels': '(3)'}), True, 'import tensorflow as tf\n'), (71, 'tensorflow.stack', 'tf.stack', (['[ymin, xmin, ymax, xmax]'], {'axis': '(-1)'}), True, 'import tensorflow as tf\n'), (120, 'tensorflow.io.parse_single_example',...
gujralsanyam22/models
d96f8f043dbe2b5ca8ea1785f57df8faf68d8875
# 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...
[ "tensorflow.less", "tensorflow.logical_or", "tensorflow.greater", "tensorflow.ones_like", "tensorflow.keras.utils.register_keras_serializable", "tensorflow.expand_dims", "tensorflow.zeros_like", "tensorflow.greater_equal" ]
official/vision/beta/modeling/layers/box_matcher.py
[(23, 'tensorflow.keras.utils.register_keras_serializable', 'tf.keras.utils.register_keras_serializable', ([], {'package': '"""Vision"""'}), True, 'import tensorflow as tf\n'), (99, 'official.vision.beta.ops.box_ops.box_matching', 'box_ops.box_matching', (['boxes', 'gt_boxes', 'gt_classes'], {}), False, 'from official....
gujralsanyam22/models
11ea5237818e791a5717716d5413977f4c4db1e3
# 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...
[ "tensorflow.name_scope", "tensorflow.unstack" ]
official/vision/detection/utils/object_detection/box_coder.py
[(69, 'tensorflow.name_scope', 'tf.name_scope', (['"""Encode"""'], {}), True, 'import tensorflow as tf\n'), (83, 'tensorflow.name_scope', 'tf.name_scope', (['"""Decode"""'], {}), True, 'import tensorflow as tf\n'), (147, 'tensorflow.unstack', 'tf.unstack', (['encoded_boxes'], {}), True, 'import tensorflow as tf\n')]
jingshuw/sctransfer
380c3f26934c26cd177e63aacf4f3bdcf9a29c47
from keras.engine.topology import Layer from keras.layers import Lambda, Dense from keras.engine.base_layer import InputSpec from keras import backend as K import tensorflow as tf class ConstantDispersionLayer(Layer): ''' An identity layer which allows us to inject extra parameters such as dispers...
[ "tensorflow.is_nan", "tensorflow.zeros_like", "tensorflow.reshape", "tensorflow.identity" ]
build/lib/sctransfer/layers.py
[(25, 'tensorflow.identity', 'tf.identity', (['x'], {}), True, 'import tensorflow as tf\n'), (72, 'keras.engine.base_layer.InputSpec', 'InputSpec', ([], {'min_ndim': '(2)', 'axes': '{(-1): input_dim}'}), False, 'from keras.engine.base_layer import InputSpec\n'), (21, 'keras.backend.exp', 'K.exp', (['self.theta'], {}), ...
kpe/tensor2tensor
453c473030c354a3d9a4c27b12bcec8942334bf4
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # 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...
[ "numpy.all", "tensorflow.compat.v1.enable_eager_execution", "tensorflow.test.main", "tensorflow.Session" ]
tensor2tensor/data_generators/problem_test.py
[(32, 'tensorflow.compat.v1.enable_eager_execution', 'tf.compat.v1.enable_eager_execution', ([], {}), True, 'import tensorflow as tf\n'), (57, 'tensor2tensor.utils.test_utils.run_in_graph_mode_only', 'test_utils.run_in_graph_mode_only', ([], {}), False, 'from tensor2tensor.utils import test_utils\n'), (70, 'tensor2tens...
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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...
[ "tensorflow.boolean_mask", "tensorflow.nn.relu", "tensorflow.math.reduce_min", "tensorflow.constant", "tensorflow.math.count_nonzero", "tensorflow.shape", "tensorflow.cast", "tensorflow.expand_dims", "tensorflow.math.reduce_mean", "tensorflow.stop_gradient", "tensorflow.eye", "tensorflow.zeros...
poem/core/loss_utils.py
[(185, 'poem.core.distance_utils.compute_distance_matrix', 'distance_utils.compute_distance_matrix', (['anchor_points', 'match_points'], {'distance_fn': 'distance_fn', 'start_point_masks': 'anchor_point_masks', 'end_point_masks': 'match_point_masks'}), False, 'from poem.core import distance_utils\n'), (446, 'poem.core....
TangZhenchaoTZC/Keras-mask-detection
325679d06a12a90b2552ed7d447298a23e3b9d57
"""fasterRCNN训练的损失函数与数据生成器""" from keras.applications.imagenet_utils import preprocess_input from keras import backend as K import keras import tensorflow as tf import numpy as np from random import shuffle import random from PIL import Image from keras.objectives import categorical_crossentropy from matplotlib.colors ...
[ "numpy.expand_dims", "tensorflow.gather_nd", "numpy.logical_and", "matplotlib.colors.hsv_to_rgb", "numpy.reshape", "numpy.random.shuffle", "numpy.shape", "numpy.random.rand", "numpy.array" ]
fasterRCNNtrain/loss_and_gen.py
[(14, 'sys.path.append', 'sys.path.append', (['""".."""'], {}), False, 'import sys\n'), (32, 'tensorflow.gather_nd', 'tf.gather_nd', (['labels', 'indices_for_object'], {}), True, 'import tensorflow as tf\n'), (33, 'tensorflow.gather_nd', 'tf.gather_nd', (['classification', 'indices_for_object'], {}), True, 'import tens...
sorhus/tensorflow
acb1ef68f5aea3b6f7f1e14db588b74134719b5e
# 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...
[ "tensorflow.device", "tensorflow.constant", "tensorflow.python.eager.test.main", "tensorflow.contrib.summary.summary_test_util.events_from_file", "tensorflow.contrib.eager.python.examples.spinn.data.load_vocabulary", "tensorflow.contrib.eager.python.examples.spinn.data.SnliData", "tensorflow.python.trai...
tensorflow/contrib/eager/python/examples/spinn/spinn_test.py
[(61, 'tensorflow.contrib.eager.num_gpus', 'tfe.num_gpus', ([], {}), True, 'import tensorflow.contrib.eager as tfe\n'), (84, 'collections.namedtuple', 'collections.namedtuple', (['"""Config"""', "['d_hidden', 'd_proj', 'd_tracker', 'predict', 'embed_dropout',\n 'mlp_dropout', 'n_mlp_layers', 'd_mlp', 'd_out', 'proje...
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
# Copyright 2018 Tensorforce Team. 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 la...
[ "tensorflow.assign_add", "tensorflow.control_dependencies" ]
src/tensorforce/tensorforce/core/optimizers/optimizer.py
[(59, 'tensorforce.TensorforceError', 'TensorforceError', (['"""Invalid variables and deltas lists."""'], {}), False, 'from tensorforce import TensorforceError, util\n'), (65, 'tensorflow.control_dependencies', 'tf.control_dependencies', ([], {'control_inputs': 'assignments'}), True, 'import tensorflow as tf\n'), (66, ...
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
# Copyright 2018 Tensorforce Team. 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 la...
[ "tensorflow.zeros_like", "tensorflow.sign", "tensorflow.control_dependencies" ]
src/tensorforce/tensorforce/core/optimizers/evolutionary.py
[(69, 'tensorflow.zeros_like', 'tf.zeros_like', ([], {'tensor': 'variable'}), True, 'import tensorflow as tf\n'), (70, 'tensorflow.zeros_like', 'tf.zeros_like', ([], {'tensor': 'variable'}), True, 'import tensorflow as tf\n'), (125, 'tensorflow.control_dependencies', 'tf.control_dependencies', ([], {'control_inputs': '...
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
# Lint as: python2, python3 # 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 # ...
[ "tensorflow.lite.experimental.nn.TFLiteLSTMCell", "tensorflow.nn.softmax_cross_entropy_with_logits", "tensorflow.nn.static_rnn", "tensorflow.lite.TFLiteConverter.from_session", "tensorflow.lite.experimental.nn.dynamic_rnn", "tensorflow.train.AdamOptimizer", "numpy.allclose", "numpy.reshape", "tensor...
tensorflow/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py
[(32, 'tensorflow.ConfigProto', 'tf.ConfigProto', ([], {'device_count': "{'GPU': 0}"}), True, 'import tensorflow as tf\n'), (276, 'tensorflow.python.platform.test.main', 'test.main', ([], {}), False, 'from tensorflow.python.platform import test\n'), (38, 'tensorflow.reset_default_graph', 'tf.reset_default_graph', ([], ...
oahziur/probability
8edc2892658b5fac7f2e162e1abdc37d1f9858da
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
[ "tensorflow.convert_to_tensor", "tensorflow.TensorShape", "tensorflow.executing_eagerly", "tensorflow.constant", "tensorflow.shape", "tensorflow.placeholder_with_default", "tensorflow.test.main", "numpy.ones", "tensorflow.name_scope", "numpy.float32", "numpy.zeros", "tensorflow.random_normal" ...
tensorflow_probability/python/distributions/distribution_test.py
[(378, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (100, 'tensorflow.placeholder_with_default', 'tf.placeholder_with_default', ([], {'input': '(1)', 'shape': '[]'}), True, 'import tensorflow as tf\n'), (106, 'tensorflow.placeholder_with_default', 'tf.placeholder_with_default', ...
oahziur/probability
ca14fa8924749593fd21e2b6389551f964527eec
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
[ "tensorflow.TensorShape", "numpy.log", "tensorflow.constant", "numpy.arange", "tensorflow.placeholder_with_default", "tensorflow.test.main", "tensorflow.zeros_like", "numpy.array", "scipy.stats.pareto" ]
tensorflow_probability/python/distributions/pareto_test.py
[(349, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (37, 'scipy.stats.pareto', 'stats.pareto', (['concentration'], {'scale': 'scale'}), False, 'from scipy import stats\n'), (40, 'tensorflow.constant', 'tf.constant', (['([2.0] * 5)'], {}), True, 'import tensorflow as tf\n'), (41,...
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
# 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...
[ "tensorflow.convert_to_tensor", "tensorflow.device", "numpy.asarray", "tensorflow.stack", "tensorflow.SparseTensorValue", "numpy.random.randint", "numpy.testing.assert_equal", "tensorflow.Graph", "tensorflow.Variable", "numpy.arange", "tensorflow.test.main", "tensorflow.deserialize_many_sparse...
tensorflow/python/kernel_tests/sparse_tensors_map_ops_test.py
[(234, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (55, 'tensorflow.SparseTensorValue', 'tf.SparseTensorValue', (['ind', 'val', 'shape'], {}), True, 'import tensorflow as tf\n'), (68, 'tensorflow.SparseTensorValue', 'tf.SparseTensorValue', (['ind', 'val', 'shape'], {}), True, '...
connectthefuture/tensorflow
93812423fcd5878aa2c1d0b68dc0496980c8519d
# 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...
[ "tensorflow.device", "tensorflow.python.ops.random_ops.truncated_normal", "numpy.random.seed", "numpy.power", "numpy.isnan", "tensorflow.OptimizerOptions", "tensorflow.test.main", "tensorflow.python.ops.random_ops.parameterized_truncated_normal", "tensorflow.GraphOptions", "tensorflow.Session", ...
tensorflow/python/kernel_tests/parameterized_truncated_normal_op_test.py
[(186, 'numpy.random.seed', 'np.random.seed', (['(1618)'], {}), True, 'import numpy as np\n'), (189, 'tensorflow.OptimizerOptions', 'tf.OptimizerOptions', ([], {'opt_level': 'tf.OptimizerOptions.L0'}), True, 'import tensorflow as tf\n'), (237, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow a...
Pandinosaurus/model-optimization
12dc84dd34ee3c6eb08b381c0abcd65b31a42366
# Copyright 2021 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...
[ "tensorflow.multiply", "tensorflow.unique", "tensorflow.shape", "tensorflow.reduce_any", "tensorflow.reshape", "tensorflow.one_hot", "tensorflow.math.divide_no_nan", "tensorflow.size", "tensorflow.abs" ]
tensorflow_model_optimization/python/core/quantization/keras/collaborative_optimizations/cluster_preserve/cluster_preserve_quantize_registry.py
[(61, 'tensorflow.reshape', 'tf.reshape', (['t'], {'shape': '(-1,)'}), True, 'import tensorflow as tf\n'), (62, 'tensorflow.unique', 'tf.unique', (['t_flatten'], {}), True, 'import tensorflow as tf\n'), (296, 'tensorflow.size', 'tf.size', (['centroids'], {}), True, 'import tensorflow as tf\n'), (422, 'tensorflow_model_...
jdehotin/TensorFlow
a6c5f8e4e013e54fed8dfcf49fb6de365f018022
# 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...
[ "numpy.sqrt", "tensorflow.Variable", "numpy.isfinite", "tensorflow.zeros", "numpy.arange", "tensorflow.gradients", "tensorflow.test.main", "tensorflow.ones", "numpy.ones", "scipy.stats.norm", "tensorflow.initialize_all_variables", "numpy.random.RandomState" ]
tensorflow/contrib/distributions/python/kernel_tests/quantized_distribution_test.py
[(459, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (30, 'numpy.random.RandomState', 'np.random.RandomState', (['(0)'], {}), True, 'import numpy as np\n'), (250, 'scipy.stats.norm', 'stats.norm', (['mu', 'sigma'], {}), False, 'from scipy import stats\n'), (272, 'scipy.stats.norm...
slomrafgrav/models
e498d28503fd4a12d1fa9ade41891f2f9601c674
# 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...
[ "tensorflow.variable_scope" ]
research/object_detection/models/ssd_inception_v2_feature_extractor.py
[(107, 'object_detection.utils.shape_utils.check_min_image_dim', 'shape_utils.check_min_image_dim', (['(33)', 'preprocessed_inputs'], {}), False, 'from object_detection.utils import shape_utils\n'), (118, 'tensorflow.variable_scope', 'tf.variable_scope', (['"""InceptionV2"""'], {'reuse': 'self._reuse_weights'}), True, ...
alixhami/training-data-analyst
3eb60cb6c8b55fd7f38414c1082da36b8e62558e
#!/usr/bin/env python3 # Copyright 2017 Google Inc. 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 requir...
[ "tensorflow.stack", "tensorflow.data.TextLineDataset", "tensorflow.keras.estimator.model_to_estimator", "tensorflow.estimator.train_and_evaluate", "tensorflow.decode_csv", "tensorflow.estimator.export.PredictOutput", "tensorflow.squeeze", "tensorflow.train.get_global_step", "tensorflow.logging.set_v...
courses/machine_learning/deepdive/05_artandscience/simplernn/trainer/model.py
[(21, 'tensorflow.logging.set_verbosity', 'tf.logging.set_verbosity', (['tf.logging.INFO'], {}), True, 'import tensorflow as tf\n'), (75, 'tensorflow.keras.models.Sequential', 'keras.models.Sequential', ([], {}), False, 'from tensorflow import keras\n'), (82, 'tensorflow.keras.estimator.model_to_estimator', 'keras.esti...
hartmanwilliam/federated
ecf51cdf8b86cbd000f6edc5715dc904bce07540
# Lint as: python3 # Copyright 2019, The TensorFlow Federated Authors. # # 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 ...
[ "tensorflow.concat", "tensorflow.reshape", "tensorflow.strings.split", "tensorflow.map_fn", "tensorflow.lookup.KeyValueTensorInitializer", "tensorflow.size" ]
tensorflow_federated/python/research/optimization/stackoverflow/dataset.py
[(27, 'tensorflow_federated.simulation.datasets.stackoverflow.load_word_counts', 'tff.simulation.datasets.stackoverflow.load_word_counts', ([], {}), True, 'import tensorflow_federated as tff\n'), (42, 'tensorflow.map_fn', 'tf.map_fn', (['(lambda x: x[:-1])', 'chunk'], {}), True, 'import tensorflow as tf\n'), (43, 'tens...
middleprince/fashionAi
c512936b4983c2fb093008f06e04753180af0a90
# Copyright 2018 Changan Wang # 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, so...
[ "tensorflow.floordiv", "tensorflow.control_dependencies", "tensorflow.cast", "tensorflow.nn.l2_loss", "tensorflow.gfile.MakeDirs", "tensorflow.app.flags.DEFINE_string", "tensorflow.GPUOptions", "tensorflow.app.flags.DEFINE_boolean", "tensorflow.estimator.RunConfig", "tensorflow.summary.scalar", ...
train_senet_cpn_onebyone.py
[(34, 'tensorflow.app.flags.DEFINE_integer', 'tf.app.flags.DEFINE_integer', (['"""num_readers"""', '(16)', '"""The number of parallel readers that read data from the dataset."""'], {}), True, 'import tensorflow as tf\n'), (37, 'tensorflow.app.flags.DEFINE_integer', 'tf.app.flags.DEFINE_integer', (['"""num_preprocessing...
sankar-mukherjee/DCASE-2018---Task-4-
f8034641efef6e60ea721abc5569d9c1aa8ee56d
# !/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # This code is an adaptation from Toni Heittola's code [task1 baseline dcase 2018](https://github.com/DCASE-REPO/dcase2018_baseline/tree/master/task1/) # Copyright Nicolas Turpault, Romain Serizel, H...
[ "numpy.random.seed", "numpy.arange", "tensorflow.set_random_seed", "tensorflow.get_default_graph", "numpy.array" ]
task4_crnn.py
[(23, 'dcase_util.utils.setup_logging', 'dcase_util.utils.setup_logging', ([], {'logging_file': '"""task4.log"""'}), False, 'import dcase_util\n'), (26, 'random.seed', 'random.seed', (['(10)'], {}), False, 'import random\n'), (27, 'numpy.random.seed', 'numpy.random.seed', (['(42)'], {}), False, 'import numpy\n'), (29, ...
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
# 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...
[ "tensorflow.assert_equal" ]
research/object_detection/core/anchor_generator.py
[(149, 'tensorflow.assert_equal', 'tf.assert_equal', (['expected_num_anchors', 'actual_num_anchors'], {}), True, 'import tensorflow as tf\n')]
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
# 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 applicable ...
[ "tensorflow.Graph", "tensorflow.test.main", "tensorflow.placeholder", "tensorflow.global_variables_initializer", "tensorflow.reset_default_graph", "numpy.random.uniform", "tensorflow.argmax", "tensorflow.random_uniform" ]
research/slim/nets/mobilenet_v1_test.py
[(535, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (36, 'tensorflow.random_uniform', 'tf.random_uniform', (['(batch_size, height, width, 3)'], {}), True, 'import tensorflow as tf\n'), (37, 'research.slim.nets.mobilenet_v1.mobilenet_v1', 'mobilenet_v1.mobilenet_v1', (['inputs', ...
MohamedAli1995/Cifar-100-Classifier
924704a81ce13062825a88b90b80e8ac2ba45d63
import tensorflow as tf class BaseTrain: """Standard base_train-class for easy multiple-inheritance. It is responsible for defining the functions to be implemented with any child. Attributes: sess: Tensorflow session to use. model: Model to be trained. data: Data_loader object...
[ "tensorflow.global_variables_initializer", "tensorflow.local_variables_initializer" ]
src/base/base_train.py
[(23, 'tensorflow.global_variables_initializer', 'tf.global_variables_initializer', ([], {}), True, 'import tensorflow as tf\n'), (23, 'tensorflow.local_variables_initializer', 'tf.local_variables_initializer', ([], {}), True, 'import tensorflow as tf\n')]
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
''' Implementation of the paper 'Tensorizing Neural Networks', Alexander Novikov, Dmitry Podoprikhin, Anton Osokin, Dmitry P. Vetrov, NIPS, 2015 to compress a dense layer using Tensor Train factorization. TTLayer compute y = Wx + b in the compressed form. ''' from keras import backend as K, activations, initializers fr...
[ "tensorflow.matmul", "tensorflow.transpose", "tensorflow.reshape", "tensorflow.add", "numpy.prod", "numpy.array" ]
code/palmnet/layers/tt_layer_dense.py
[(24, 'keras.activations.get', 'activations.get', (['activation'], {}), False, 'from keras import backend as K, activations, initializers\n'), (26, 'keras.initializers.get', 'initializers.get', (['kernel_initializer'], {}), False, 'from keras import backend as K, activations, initializers\n'), (27, 'keras.initializers....
feiwu77777/Face-detection-and-tracking
1135d2d93d5b667110551dc7e4b985b5861eb380
# -*- coding: utf-8 -*- """ Created on Mon Dec 10 15:49:15 2018 @author: fei.wu """ # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import tiny_face_model import util import cv2 import numpy a...
[ "tensorflow.convert_to_tensor", "numpy.hstack", "matplotlib.pyplot.imshow", "tensorflow.Graph", "scipy.special.expit", "numpy.power", "numpy.vstack", "tensorflow.placeholder", "numpy.ceil", "tensorflow.global_variables_initializer", "numpy.max", "tensorflow.Session", "numpy.exp", "matplotl...
eval_tiny_one_image.py
[(78, 'tensorflow.placeholder', 'tf.placeholder', (['tf.float32', '[1, None, None, 3]'], {}), True, 'import tensorflow as tf\n'), (81, 'tiny_face_model.Model', 'tiny_face_model.Model', (['weight_file_path'], {}), False, 'import tiny_face_model\n'), (92, 'numpy.where', 'np.where', (['(clusters[:, (4)] == 1)'], {}), True...
bestetc/batchflow
d2a843640383fbe860654236881483f755227e06
""" Helpers for training """ from math import pi import tensorflow as tf def piecewise_constant(global_step, *args, **kwargs): """ Constant learning rate decay (uses global_step param instead of x) """ return tf.train.piecewise_constant(global_step, *args, **kwargs) def cyclic_learning_rate(learning_rate, gl...
[ "tensorflow.sin", "tensorflow.cast", "tensorflow.mod", "tensorflow.train.piecewise_constant", "tensorflow.name_scope", "tensorflow.abs" ]
batchflow/models/tf/nn/train.py
[(8, 'tensorflow.train.piecewise_constant', 'tf.train.piecewise_constant', (['global_step', '*args'], {}), True, 'import tensorflow as tf\n'), (76, 'tensorflow.name_scope', 'tf.name_scope', (['name'], {}), True, 'import tensorflow as tf\n'), (77, 'tensorflow.cast', 'tf.cast', (['learning_rate'], {'dtype': 'tf.float32'}...
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
import tensorflow as tf from .layer import * class Discriminator: def __init__(self, inputs, targets, ndf=64): n_layers = 3 layers = [] input = tf.concat([inputs, targets], axis=3) with tf.variable_scope('layer_1'): convolved = discrim_conv(input, ndf, stride=2) ...
[ "tensorflow.variable_scope", "tensorflow.sigmoid", "tensorflow.concat" ]
malaya_speech/train/model/pix2pix/discriminator.py
[(9, 'tensorflow.concat', 'tf.concat', (['[inputs, targets]'], {'axis': '(3)'}), True, 'import tensorflow as tf\n'), (10, 'tensorflow.variable_scope', 'tf.variable_scope', (['"""layer_1"""'], {}), True, 'import tensorflow as tf\n'), (27, 'tensorflow.sigmoid', 'tf.sigmoid', (['convolved'], {}), True, 'import tensorflow ...
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
# 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...
[ "tensorflow.concat", "tensorflow.gfile.DeleteRecursively", "tensorflow.control_dependencies", "tensorflow.gfile.Exists", "tensorflow.gfile.MkDir", "tensorflow.global_variables", "tensorflow.cast", "tensorflow.train.ExponentialMovingAverage", "tensorflow.app.flags.DEFINE_string", "tensorflow.train....
contrib/TensorFlow/Official/cv/east/EAST_ID0238_for_TensorFlow/npu_train.py
[(38, 'tensorflow.app.flags.DEFINE_integer', 'tf.app.flags.DEFINE_integer', (['"""input_size"""', '(512)', '""""""'], {}), True, 'import tensorflow as tf\n'), (39, 'tensorflow.app.flags.DEFINE_integer', 'tf.app.flags.DEFINE_integer', (['"""batch_size_per_gpu"""', '(14)', '""""""'], {}), True, 'import tensorflow as tf\n...
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
# 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 applicable ...
[ "tensorflow.FixedLenFeature", "tensorflow.zeros" ]
built-in/TensorFlow/Official/cv/image_classification/MobileNetV2_for_TensorFlow/datasets/cifar10.py
[(82, 'os.path.join', 'os.path.join', (['dataset_dir', '(file_pattern % split_name)'], {}), False, 'import os\n'), (104, 'datasets.dataset_utils.has_labels', 'dataset_utils.has_labels', (['dataset_dir'], {}), False, 'from datasets import dataset_utils\n'), (89, 'tensorflow.FixedLenFeature', 'tf.FixedLenFeature', (['()'...
zysilence/tensorforce
7539e5dde66f3a93b881006f9b7f38c926ced21b
# Copyright 2017 reinforce.io. 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...
[ "tensorflow.scatter_update", "tensorflow.boolean_mask", "tensorflow.assign_add", "tensorflow.control_dependencies", "tensorflow.shape", "tensorflow.range", "tensorflow.minimum", "tensorflow.assign", "tensorflow.assert_less_equal", "tensorflow.gather", "tensorflow.no_op", "tensorflow.make_templ...
tensorforce/core/memories/queue.py
[(65, 'tensorflow.make_template', 'tf.make_template', ([], {'name_': "(self.scope + '/retrieve_indices')", 'func_': 'self.tf_retrieve_indices', 'custom_getter_': 'custom_getter'}), True, 'import tensorflow as tf\n'), (159, 'tensorflow.minimum', 'tf.minimum', ([], {'x': 'num_episodes', 'y': 'self.episode_count'}), True,...
samgregoost/self_supervised_large
9c0c33cf374a1d5112519939012a64bca98c5f8d
from __future__ import print_function import tensorflow as tf import numpy as np import random import TensorflowUtils as utils import read_MITSceneParsingDataParis as scene_parsing import datetime import BatchDatsetReader as dataset from six.moves import xrange FLAGS = tf.flags.FLAGS tf.flags.DEFINE_integer("batch_siz...
[ "tensorflow.concat", "tensorflow.stack", "numpy.squeeze", "tensorflow.cast", "numpy.mean", "tensorflow.train.AdamOptimizer", "tensorflow.flags.DEFINE_float", "tensorflow.pad", "tensorflow.summary.scalar", "tensorflow.summary.image", "tensorflow.gradients", "tensorflow.layers.dense", "numpy.c...
mnist128.py
[(12, 'tensorflow.flags.DEFINE_integer', 'tf.flags.DEFINE_integer', (['"""batch_size"""', '"""50"""', '"""batch size for training"""'], {}), True, 'import tensorflow as tf\n'), (13, 'tensorflow.flags.DEFINE_string', 'tf.flags.DEFINE_string', (['"""logs_dir"""', '"""/scratch1/ram095/nips20/logs_mnist128/"""', '"""path t...
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
# 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...
[ "tensorflow.contrib.eager.python.examples.linear_regression.linear_regression.fit", "tensorflow.enable_eager_execution", "tensorflow.contrib.eager.Iterator", "tensorflow.test.main", "tensorflow.contrib.eager.python.examples.linear_regression.linear_regression.synthetic_dataset", "tensorflow.contrib.eager....
tensorflow/contrib/eager/python/examples/linear_regression/linear_regression_test.py
[(120, 'tensorflow.enable_eager_execution', 'tf.enable_eager_execution', ([], {}), True, 'import tensorflow as tf\n'), (121, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (41, 'tempfile.mkdtemp', 'tempfile.mkdtemp', ([], {}), False, 'import tempfile\n'), (44, 'shutil.rmtree', 'sh...
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
# 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...
[ "tensorflow.device", "tensorflow.enable_eager_execution", "tensorflow.python.client.device_lib.list_local_devices", "tensorflow.DeviceSpec.from_string", "tensorflow.train.AdamOptimizer", "tensorflow.Graph", "tensorflow.Variable", "tensorflow.test.main", "tensorflow.Session", "tensorflow.contrib.ea...
tensorflow/contrib/eager/python/examples/revnet/revnet_test.py
[(180, 'tensorflow.random_uniform', 'tf.random_uniform', (['shape'], {}), True, 'import tensorflow as tf\n'), (181, 'tensorflow.random_uniform', 'tf.random_uniform', (['[batch_size]'], {'minval': '(0)', 'maxval': 'config.n_classes', 'dtype': 'tf.int32'}), True, 'import tensorflow as tf\n'), (342, 'tensorflow.enable_eag...
T3p/baselines
5623c9160d1e86ebca3e673f142fe6b14a1db06c
#!/usr/bin/env python3 ''' This script runs rllab or gym environments. To run RLLAB, use the format rllab.<env_name> as env name, otherwise gym will be used. ''' # Common imports import sys, re, os, time, logging from collections import defaultdict # Framework imports import gym import tensorflow as tf # Self...
[ "tensorflow.contrib.layers.xavier_initializer" ]
baselines/pois2/run.py
[(108, 'baselines.common.tf_util.make_session', 'U.make_session', (['affinity'], {}), True, 'import baselines.common.tf_util as U\n'), (111, 'baselines.common.set_global_seeds', 'set_global_seeds', (['seed'], {}), False, 'from baselines.common import set_global_seeds\n'), (113, 'gym.logger.setLevel', 'gym.logger.setLev...
gitter-badger/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
# coding: utf-8 # In[1]: import os import numpy as np import tensorflow as tf from tqdm import tqdm from model import Model from setting import batch_size, get_cached, idx2char, n_mels, reduction_factor, text2idx # In[2]: paths, lengths, texts = [], [], [] text_files = [f for f in os.listdir("spectrogram") if f...
[ "numpy.pad", "tensorflow.InteractiveSession", "tensorflow.global_variables_initializer", "tensorflow.reset_default_graph", "numpy.load" ]
mlmodels/model_tf/misc/tf_nlp/speech-to-text/1.tacotron/train.py
[(43, 'tensorflow.reset_default_graph', 'tf.reset_default_graph', ([], {}), True, 'import tensorflow as tf\n'), (44, 'tensorflow.InteractiveSession', 'tf.InteractiveSession', ([], {}), True, 'import tensorflow as tf\n'), (45, 'model.Model', 'Model', ([], {}), False, 'from model import Model\n'), (46, 'tensorflow.global...
gitter-badger/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
#!/usr/bin/env python # coding: utf-8 # In[1]: import os import tensorflow as tf from scipy.io.wavfile import write from tqdm import tqdm from utils import * # In[2]: def prenet(inputs, num_units=None, is_training=True, scope="prenet"): if num_units is None: num_units = [embed_size, embed_size // 2]...
[ "tensorflow.layers.conv1d", "tensorflow.nn.dynamic_rnn", "tensorflow.concat", "tensorflow.contrib.rnn.GRUCell", "tensorflow.zeros", "tensorflow.layers.dropout", "tensorflow.reduce_sum", "tensorflow.nn.bidirectional_dynamic_rnn", "tensorflow.orthogonal_initializer", "tensorflow.train.AdamOptimizer"...
mlmodels/model_tf/misc/tf_nlp/text-to-speech/3.seq2seq-luong.py
[(154, 'tensorflow.reset_default_graph', 'tf.reset_default_graph', ([], {}), True, 'import tensorflow as tf\n'), (155, 'tensorflow.InteractiveSession', 'tf.InteractiveSession', ([], {}), True, 'import tensorflow as tf\n'), (162, 'tensorflow.global_variables_initializer', 'tf.global_variables_initializer', ([], {}), Tru...
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
import matplotlib.animation as animation import matplotlib.pyplot as plt import numpy as np from sklearn.cluster import KMeans import inferpy as inf from datareduction.bayesian_pca_DR import BayesianPCA_DR from datareduction.variational_gaussian_mixture_DR import VariationalGaussianMixture_DR from prml.feature_extract...
[ "matplotlib.pyplot.legend", "numpy.random.seed", "matplotlib.pyplot.ylim", "matplotlib.pyplot.show", "matplotlib.pyplot.savefig", "matplotlib.pyplot.plot", "tensorflow.examples.tutorials.mnist.input_data.read_data_sets", "numpy.random.normal", "numpy.random.permutation", "numpy.savetxt", "numpy....
andres@programo.ual.es/evaluatePCA.py
[(17, 'numpy.random.seed', 'np.random.seed', (['(0)'], {}), True, 'import numpy as np\n'), (50, 'tensorflow.examples.tutorials.mnist.input_data.read_data_sets', 'input_data.read_data_sets', (['"""MNIST_data/"""'], {}), False, 'from tensorflow.examples.tutorials.mnist import input_data\n'), (71, 'numpy.zeros', 'np.zeros...
4k4xs4pH1r3/tf_rl_tutorial
c58d10c60cfd79b2e0661b4a49cccae8d4584c57
# Copyright 2016 Mandiant, A FireEye Company # Authors: Brian Jones # License: Apache 2.0 ''' Model classes for "Relational Learning with TensorFlow" tutorial ''' import numpy as np import tensorflow as tf from .util import ContrastiveTrainingProvider def least_squares_objective(output, target, add_bias=True): ...
[ "tensorflow.scatter_update", "tensorflow.concat", "numpy.sqrt", "tensorflow.reduce_sum", "tensorflow.Graph", "tensorflow.batch_matmul", "tensorflow.Variable", "tensorflow.initialize_all_variables", "tensorflow.square", "tensorflow.Session", "tensorflow.train.AdagradOptimizer", "tensorflow.trun...
tf_rl_tutorial/models.py
[(67, 'tensorflow.reshape', 'tf.reshape', (['output', '[-1, 2]'], {}), True, 'import tensorflow as tf\n'), (68, 'tensorflow.split', 'tf.split', (['(1)', '(2)', 'y_pairs'], {}), True, 'import tensorflow as tf\n'), (69, 'tensorflow.nn.relu', 'tf.nn.relu', (['(margin - pos_scores + neg_scores)'], {}), True, 'import tensor...
gnes-ai/hub
94cff9011ff6447ce1af51c5307813ab6fbbb156
# Tencent is pleased to support the open source community by making GNES available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. 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...
[ "tensorflow.Graph", "tensorflow.placeholder", "tensorflow.train.import_meta_graph", "tensorflow.ConfigProto", "tensorflow.global_variables_initializer", "tensorflow.Session", "tensorflow.variable_scope", "numpy.array", "numpy.zeros" ]
encoder/i3d/i3d_encoder.py
[(51, 'gnes.helper.get_first_available_gpu', 'get_first_available_gpu', ([], {}), False, 'from gnes.helper import batching, get_first_available_gpu\n'), (54, 'tensorflow.placeholder', 'tf.placeholder', ([], {'dtype': 'tf.float32', 'shape': '(None, self.num_frame_per_clib, self.frame_size_x, self.frame_size_y, self.\n ...
jsdussanc/luminoth
dc1c1203a40e1ecf2aaca9647f3008ab72b41438
import tensorflow as tf def get_width_upright(bboxes): with tf.name_scope('BoundingBoxTransform/get_width_upright'): bboxes = tf.cast(bboxes, tf.float32) x1, y1, x2, y2 = tf.split(bboxes, 4, axis=1) width = x2 - x1 + 1. height = y2 - y1 + 1. # Calculate up right point of b...
[ "tensorflow.concat", "tensorflow.unstack", "tensorflow.stack", "tensorflow.cast", "tensorflow.minimum", "tensorflow.placeholder", "tensorflow.exp", "numpy.all", "tensorflow.name_scope", "tensorflow.Session", "tensorflow.log", "tensorflow.split" ]
luminoth/utils/bbox_transform_tf.py
[(132, 'tensorflow.placeholder', 'tf.placeholder', (['tf.float32'], {}), True, 'import tensorflow as tf\n'), (135, 'tensorflow.placeholder', 'tf.placeholder', (['tf.float32'], {}), True, 'import tensorflow as tf\n'), (138, 'tensorflow.placeholder', 'tf.placeholder', (['tf.int32'], {}), True, 'import tensorflow as tf\n'...
harunpehlivan/tensorflow
d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f
# 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...
[ "tensorflow.python.ops.math_ops.reduce_sum", "tensorflow.contrib.learn.python.learn.estimators.model_fn.ModelFnOps", "tensorflow.python.ops.control_flow_ops.with_dependencies", "tensorflow.python.training.training_util.get_global_step", "numpy.squeeze", "tensorflow.python.framework.ops.get_default_graph",...
tensorflow/contrib/factorization/python/ops/gmm.py
[(42, 'tensorflow.python.framework.constant_op.constant', 'constant_op.constant', (['(0.0)'], {}), False, 'from tensorflow.python.framework import constant_op\n'), (131, 'numpy.sum', 'np.sum', (['results[GMM.SCORES]'], {}), True, 'import numpy as np\n'), (135, 'tensorflow.contrib.framework.python.framework.checkpoint_u...
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
# Copyright 2016 James Hensman, alexggmatthews # # 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 t...
[ "tensorflow.convert_to_tensor", "tensorflow.TensorShape", "tensorflow.matmul", "tensorflow.concat", "numpy.sqrt", "tensorflow.shape", "tensorflow.Dimension", "tensorflow.stack", "tensorflow.reshape", "tensorflow.rank", "tensorflow.sqrt", "tensorflow.add_n" ]
SVGPs/functions.py
[(43, 'quadrature.hermgauss', 'hermgauss', (['num_gauss_hermite_points'], {}), False, 'from quadrature import hermgauss\n'), (46, 'tensorflow.shape', 'tf.shape', (['Fmu'], {}), True, 'import tensorflow as tf\n'), (68, 'tensorflow.Dimension', 'tf.Dimension', (['(0)'], {}), True, 'import tensorflow as tf\n'), (69, 'tenso...
Holmeswww/Text_Infilling
f63cd24bee5c62d7dedd8fb35c4e52aee20c39f3
# """ Adversarial losses. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def binary_adversarial_losses(real_data, fake_data, discriminator_fn, ...
[ "tensorflow.zeros_like", "tensorflow.ones_like" ]
texar/losses/adv_losses.py
[(44, 'tensorflow.ones_like', 'tf.ones_like', (['real_logits'], {}), True, 'import tensorflow as tf\n'), (50, 'tensorflow.zeros_like', 'tf.zeros_like', (['fake_logits'], {}), True, 'import tensorflow as tf\n'), (58, 'tensorflow.ones_like', 'tf.ones_like', (['fake_logits'], {}), True, 'import tensorflow as tf\n')]
sweetpand/tensorflow_mri
7a483cbbbe515ad395928311759505707bd72503
import sonnet as snt import tensorflow as tf from util.helper import GraphKeys, add_to_collection from util.layers import DenseLayer, LossLayer, OptimizerLayer, ModelBase class PairwiseGMF(ModelBase): def __init__(self, config): """ :param config: """ # super(PairwiseGMF, self)._...
[ "tensorflow.get_collection", "tensorflow.placeholder", "tensorflow.truncated_normal_initializer", "tensorflow.summary.merge_all", "tensorflow.contrib.layers.xavier_initializer", "tensorflow.contrib.layers.l2_regularizer", "tensorflow.add_to_collection" ]
recommendation_system_demos/Basic-CMN-Demo/util/gmf.py
[(35, 'tensorflow.summary.merge_all', 'tf.summary.merge_all', ([], {}), True, 'import tensorflow as tf\n'), (42, 'util.layers.DenseLayer', 'DenseLayer', (['(1)', '(False)', 'tf.nn.relu'], {'initializers': 'self._initializers', 'regularizers': 'self._regularizers', 'name': '"""OutputVector"""'}), False, 'from util.layer...
sweetpand/tensorflow_mri
7a483cbbbe515ad395928311759505707bd72503
import tensorflow as tf from tensorflow.python.ops.rnn_cell import * from tensorflow.python.ops.rnn_cell_impl import _Linear from tensorflow.python.ops import math_ops from tensorflow.python.ops import init_ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import variable_scope as vs class ...
[ "tensorflow.concat", "tensorflow.python.ops.array_ops.split", "tensorflow.reduce_sum", "tensorflow.minimum", "tensorflow.tanh", "tensorflow.where", "tensorflow.python.ops.init_ops.constant_initializer", "tensorflow.python.ops.rnn_cell_impl._Linear", "tensorflow.while_loop", "tensorflow.layers.dens...
recommendation_system_demos/Basic-DIEN-Demo/source_code/utils.py
[(217, 'tensorflow.tensordot', 'tf.tensordot', (['tmp', 'v'], {'axes': '(1)', 'name': '"""v_dot_tmp"""'}), True, 'import tensorflow as tf\n'), (221, 'tensorflow.where', 'tf.where', (['key_masks', 'v_dot_tmp', 'paddings'], {}), True, 'import tensorflow as tf\n'), (222, 'tensorflow.nn.softmax', 'tf.nn.softmax', (['v_dot_...
mikimaus78/ml_monorepo
b2c2627ff0e86e27f6829170d0dac168d8e5783b
import tensorflow as tf from src.nn_utils.general import exp_mask_for_high_rank, mask_for_high_rank from src.nn_utils.integration_func import directional_attention_with_dense from src.nn_utils.nn import bn_dense_layer, linear def bi_directional_simple_block_attention( rep_tensor, rep_mask, block_len=5, scope...
[ "tensorflow.concat", "tensorflow.zeros", "tensorflow.reduce_sum", "tensorflow.cast", "tensorflow.greater", "tensorflow.nn.elu", "tensorflow.nn.sigmoid", "tensorflow.shape", "tensorflow.identity", "tensorflow.nn.tanh", "tensorflow.meshgrid", "tensorflow.split", "tensorflow.nn.relu", "tensor...
BiBloSA/exp_SQuAD_sim/src/nn_utils/baselines/block_attention.py
[(11, 'tensorflow.variable_scope', 'tf.variable_scope', (["(scope or 'bi_directional_simple_block_attn')"], {}), True, 'import tensorflow as tf\n'), (19, 'tensorflow.concat', 'tf.concat', (['[fw_attn_res, bw_attn_res]', '(-1)'], {}), True, 'import tensorflow as tf\n'), (34, 'tensorflow.variable_scope', 'tf.variable_sco...
redhat6/cornac
856cf0f546a0dc6b46f407128d89ef2534994c60
# Copyright 2018 The Cornac 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 ...
[ "tensorflow.Graph", "tensorflow.nn.sigmoid", "numpy.random.seed", "numpy.arange", "tensorflow.placeholder", "tensorflow.compat.v1.logging.set_verbosity", "tensorflow.ConfigProto", "tensorflow.global_variables_initializer", "tensorflow.initializers.lecun_uniform", "tensorflow.Session", "tensorflo...
cornac/models/ncf/recom_gmf.py
[(117, 'numpy.random.seed', 'np.random.seed', (['self.seed'], {}), True, 'import numpy as np\n'), (119, 'tensorflow.compat.v1.logging.set_verbosity', 'tf.compat.v1.logging.set_verbosity', (['tf.compat.v1.logging.ERROR'], {}), True, 'import tensorflow as tf\n'), (121, 'tensorflow.Graph', 'tf.Graph', ([], {}), True, 'imp...
EdwardFerdian/4DFlowNet
e9c8bf72660b41ef5c7b6c677a71283ead32bbab
import tensorflow as tf class SR4DFlowNet(): def __init__(self, res_increase): self.res_increase = res_increase def build_network(self, u, v, w, u_mag, v_mag, w_mag, low_resblock=8, hi_resblock=4, channel_nr=64): channel_nr = 64 speed = (u ** 2 + v ** 2 + w ** 2) ** 0.5 mag = ...
[ "tensorflow.transpose", "tensorflow.keras.layers.LeakyReLU", "tensorflow.keras.regularizers.l2", "tensorflow.reshape", "tensorflow.keras.layers.Conv3D", "tensorflow.keras.layers.concatenate", "tensorflow.compat.v1.image.resize_bilinear", "tensorflow.pad" ]
src/Network/SR4DFlowNet.py
[(77, 'tensorflow.reshape', 'tf.reshape', (['input_tensor', '[-1, y_size, z_size, c_size]'], {'name': '"""reshape_bx"""'}), True, 'import tensorflow as tf\n'), (78, 'tensorflow.compat.v1.image.resize_bilinear', 'tf.compat.v1.image.resize_bilinear', (['squeeze_b_x', '[y_size_new, z_size_new]'], {'align_corners': 'align'...
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
try: from .model_interface import model_zoo except: from model_interface import model_zoo import tensorflow as tf import numpy as np from bunch import Bunch from model_io import model_io from task_module import classifier import tensorflow as tf from metric import tf_metrics from optimizer import distributed_optim...
[ "tensorflow.metrics.accuracy", "tensorflow.control_dependencies", "tensorflow.reduce_sum", "tensorflow.cast", "tensorflow.get_collection", "tensorflow.estimator.export.PredictOutput", "tensorflow.argmax", "tensorflow.nn.l2_normalize", "tensorflow.metrics.mean", "tensorflow.zeros_like", "tensorfl...
t2t_bert/distributed_single_sentence_classification/model_mdd_distillation.py
[(23, 'tensorflow.nn.l2_normalize', 'tf.nn.l2_normalize', (['x', '(-1)'], {}), True, 'import tensorflow as tf\n'), (24, 'tensorflow.nn.l2_normalize', 'tf.nn.l2_normalize', (['y', '(-1)'], {}), True, 'import tensorflow as tf\n'), (28, 'tensorflow.nn.softmax', 'tf.nn.softmax', (['x'], {}), True, 'import tensorflow as tf\...
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
# 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...
[ "tensorflow.data.Dataset.from_tensors", "tensorflow.compat.v1.enable_v2_behavior", "tensorflow.test.main", "tensorflow.train.get_or_create_global_step", "tensorflow.train.GradientDescentOptimizer", "tensorflow.contrib.eager.num_gpus", "tensorflow.contrib.eager.defun", "tensorflow.random_uniform", "t...
official/mnist/mnist_eager_test.py
[(37, 'tensorflow.random_normal', 'tf.random_normal', (['[batch_size, 784]'], {}), True, 'import tensorflow as tf\n'), (38, 'tensorflow.random_uniform', 'tf.random_uniform', (['[batch_size]'], {'minval': '(0)', 'maxval': '(10)', 'dtype': 'tf.int32'}), True, 'import tensorflow as tf\n'), (39, 'tensorflow.data.Dataset.fr...
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
# 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...
[ "tensorflow.constant", "tensorflow.summary.image", "tensorflow.contrib.training.SummaryAtEndHook", "tensorflow.name_scope", "tensorflow.variable_scope", "tensorflow.contrib.training.StopAfterNEvalsHook", "tensorflow.random_normal" ]
research/gan/mnist/conditional_eval.py
[(32, 'absl.flags.DEFINE_string', 'flags.DEFINE_string', (['"""checkpoint_dir"""', '"""/tmp/mnist/"""', '"""Directory where the model was written to."""'], {}), False, 'from absl import flags\n'), (35, 'absl.flags.DEFINE_string', 'flags.DEFINE_string', (['"""eval_dir"""', '"""/tmp/mnist/"""', '"""Directory where the re...
shfshf/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
import tensorflow as tf from seq2annotation.algorithms.model import Model class StackedBilstmCrfModel(Model): @classmethod def default_params(cls): default_params = { 'stacked_layers': 2 } return default_params def bilstm_layer(self, embeddings, nwords): t = t...
[ "tensorflow.concat", "tensorflow.contrib.rnn.TimeReversedFusedRNN", "tensorflow.contrib.rnn.LSTMBlockFusedCell", "tensorflow.transpose" ]
seq2annotation/algorithms/Stacked_BiLSTM_CRF_model.py
[(15, 'tensorflow.transpose', 'tf.transpose', (['embeddings'], {'perm': '[1, 0, 2]'}), True, 'import tensorflow as tf\n'), (16, 'tensorflow.contrib.rnn.LSTMBlockFusedCell', 'tf.contrib.rnn.LSTMBlockFusedCell', (["self.params['lstm_size']"], {}), True, 'import tensorflow as tf\n'), (17, 'tensorflow.contrib.rnn.LSTMBlock...
GaoX2015/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
# -*- coding: UTF-8 -*- """ 此脚本用于随机生成线性模型数据、定义模型以及其他工具 """ import numpy as np import tensorflow as tf def generateLinearData(dimension, num): """ 随机产生线性模型数据 参数 ---- dimension :int,自变量个数 num :int,数据个数 返回 ---- x :np.array,自变量 y :np.array,因变量 """ np.random.seed(1024)...
[ "tensorflow.matmul", "numpy.random.random", "tensorflow.gfile.DeleteRecursively", "numpy.random.seed", "tensorflow.gfile.Exists", "tensorflow.placeholder", "tensorflow.square", "tensorflow.get_default_graph" ]
ch06-sgd/utils.py
[(27, 'numpy.random.seed', 'np.random.seed', (['(1024)'], {}), True, 'import numpy as np\n'), (29, 'numpy.random.random', 'np.random.random', (['(num, dimension)'], {}), True, 'import numpy as np\n'), (30, 'numpy.random.random', 'np.random.random', (['(num, 1)'], {}), True, 'import numpy as np\n'), (48, 'numpy.random.s...
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
# -*- coding:utf-8 -*- # Author: Xue Yang <yangxue-2019-sjtu@sjtu.edu.cn> # # License: Apache-2.0 license from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np ...
[ "tensorflow.device", "tensorflow.cast", "tensorflow.random_shuffle", "tensorflow.summary.scalar", "tensorflow.add_n", "tensorflow.py_func", "tensorflow.Graph", "tensorflow.contrib.slim.get_or_create_global_step", "tensorflow.get_collection", "tensorflow.summary.image", "tensorflow.train.Momentum...
tools/r3det_gwd/train.py
[(15, 'sys.path.append', 'sys.path.append', (['"""../../"""'], {}), False, 'import sys\n'), (33, 'tensorflow.device', 'tf.device', (['"""/cpu:0"""'], {}), True, 'import tensorflow as tf\n'), (36, 'tensorflow.contrib.slim.get_or_create_global_step', 'slim.get_or_create_global_step', ([], {}), True, 'import tensorflow.co...
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
# 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...
[ "tensorflow.python.framework.tensor_shape.scalar", "tensorflow.python.ops.math_ops.log", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.ops.check_ops.assert_positive", "tensorflow.python.ops.math_ops.square", "tensorflow.python.ops.math_ops.digamma", "tensorflow.python.ops.random_ops.random...
tensorflow/contrib/distributions/python/ops/inverse_gamma.py
[(165, 'tensorflow.contrib.distributions.python.ops.distribution_util.AppendDocstring', 'distribution_util.AppendDocstring', (['"""This is defined to be\n\n ```\n entropy = alpha - log(beta) + log(Gamma(alpha))\n + (1-alpha)digamma(alpha)\n ```\n\n where digamma(alpha) is the digamma function."...
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
# 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...
[ "tensorflow.constant", "tensorflow.gradients", "tensorflow.placeholder", "tensorflow.test.main", "tensorflow.global_variables_initializer", "numpy.random.normal", "numpy.argmax", "tensorflow.square", "tensorflow.trainable_variables", "tensorflow.random_normal" ]
research/gan/progressive_gan/networks_test.py
[(34, 'networks.num_filters', 'networks.num_filters', (['block_id', '(8)', '(1)', '(8)'], {}), False, 'import networks\n'), (248, 'tensorflow.test.main', 'tf.test.main', ([], {}), True, 'import tensorflow as tf\n'), (40, 'networks.ResolutionSchedule', 'networks.ResolutionSchedule', ([], {'start_resolutions': '[5, 3]', ...
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
# 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 ...
[ "tensorflow.reduce_max", "tensorflow.nn.dynamic_rnn", "tensorflow.concat", "tensorflow.zeros", "tensorflow.greater", "tensorflow.nn.rnn_cell.LSTMCell", "tensorflow.zeros_initializer", "tensorflow.less", "tensorflow.contrib.layers.xavier_initializer", "tensorflow.to_float", "tensorflow.reverse_se...
research/fivo/fivo/models/vrnn.py
[(31, 'collections.namedtuple', 'namedtuple', (['"""VRNNState"""', '"""rnn_state latent_encoded"""'], {}), False, 'from collections import namedtuple\n'), (216, 'collections.namedtuple', 'namedtuple', (['"""TrainableVRNNState"""', "(VRNNState._fields + ('rnn_out',))"], {}), False, 'from collections import namedtuple\n'...
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
# Copyright 2016 Google Inc. 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 ...
[ "tensorflow.get_variable", "tensorflow.concat", "tensorflow.zeros", "tensorflow.nn.max_pool", "tensorflow.cast", "tensorflow.nn.conv2d_transpose", "tensorflow.nn.conv2d", "tensorflow.sparse_to_dense", "tensorflow.image.random_flip_left_right", "tensorflow.assign_add", "tensorflow.random_uniform_...
research/real_nvp/real_nvp_utils.py
[(428, 'numpy.array', 'numpy.array', (['[[[[1.0, 0.0, 0.0, 0.0]], [[0.0, 0.0, 1.0, 0.0]]], [[[0.0, 0.0, 0.0, 1.0]],\n [[0.0, 1.0, 0.0, 0.0]]]]'], {}), False, 'import numpy\n'), (33, 'tensorflow.square', 'tf.square', (['(input_ - mean)'], {}), True, 'import tensorflow as tf\n'), (34, 'tensorflow.reduce_max', 'tf.redu...
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
# 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...
[ "tensorflow.constant", "tensorflow.resource_loader.get_data_files_path", "tensorflow.transpose", "tensorflow.shape", "tensorflow.image.resize_images", "tensorflow.test.main", "tensorflow.placeholder", "numpy.concatenate", "numpy.random.rand", "tensorflow.set_random_seed", "numpy.array", "tenso...
research/object_detection/inputs_test.py
[(45, 'object_detection.utils.config_util.get_configs_from_pipeline_file', 'config_util.get_configs_from_pipeline_file', (['fname'], {}), False, 'from object_detection.utils import config_util\n'), (51, 'object_detection.utils.config_util.merge_external_params_with_configs', 'config_util.merge_external_params_with_conf...
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
# 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...
[ "tensorflow.constant", "tensorflow.image.resize_images", "tensorflow.reduce_sum", "tensorflow.reshape", "tensorflow.global_variables", "tensorflow.test.main", "tensorflow.contrib.layers.fully_connected", "tensorflow.contrib.layers.flatten", "tensorflow.random_uniform" ]
research/object_detection/legacy/trainer_test.py
[(34, 'tensorflow.random_uniform', 'tf.random_uniform', (['[32, 32, 3]'], {'dtype': 'tf.float32'}), True, 'import tensorflow as tf\n'), (35, 'tensorflow.constant', 'tf.constant', (['"""image_000000"""'], {}), True, 'import tensorflow as tf\n'), (36, 'tensorflow.random_uniform', 'tf.random_uniform', (['[1]'], {'minval':...
mkulariya1/tefla
8de25c1b67dcf025535f5e8c40539de59acd7fb8
# -------------------------------------------------------------------# # Written by Mrinal Haloi # Contact: mrinal.haloi11@gmail.com # Copyright 2016, Mrinal Haloi # -------------------------------------------------------------------# import numpy as np import tensorflow as tf import numbers from functools import parti...
[ "tensorflow.convert_to_tensor", "tensorflow.nn.softmax_cross_entropy_with_logits", "tensorflow.concat", "tensorflow.is_finite", "tensorflow.control_dependencies", "tensorflow.scatter_sub", "tensorflow.reduce_sum", "numpy.linspace", "tensorflow.cast", "tensorflow.equal", "tensorflow.zeros", "te...
tefla/core/losses.py
[(56, 'tensorflow.losses.compute_weighted_loss', 'tf.losses.compute_weighted_loss', (['losses', 'weights'], {}), True, 'import tensorflow as tf\n'), (396, 'tensorflow.reduce_max', 'tf.reduce_max', (['x', 'axis'], {}), True, 'import tensorflow as tf\n'), (397, 'tensorflow.reduce_max', 'tf.reduce_max', (['x', 'axis'], {'...
mkulariya1/tefla
8de25c1b67dcf025535f5e8c40539de59acd7fb8
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import six import os import tensorflow as tf from . import text_encoder from .texttfrecords import TextTFRecord UNSHUFFLED_SUFFIX = "-unshuffled" @six.add_metaclass(abc.ABCMeta) class TextDataset...
[ "tensorflow.gfile.Glob", "tensorflow.VarLenFeature" ]
tefla/dataset/textdataset.py
[(16, 'six.add_metaclass', 'six.add_metaclass', (['abc.ABCMeta'], {}), False, 'import six\n'), (160, 'os.path.join', 'os.path.join', (['self._data_dir', 'self._dataset_name'], {}), False, 'import os\n'), (95, 'tensorflow.VarLenFeature', 'tf.VarLenFeature', (['tf.int64'], {}), True, 'import tensorflow as tf\n'), (95, 't...
Monnoroch/tensorflow
1d76583411038767f673a0c96174c80eaf9ff42f
"""## Arithmetic Operators TensorFlow provides several operations that you can use to add basic arithmetic operators to your graph. @@add @@sub @@mul @@div @@mod ## Basic Math Functions TensorFlow provides several operations that you can use to add basic mathematical functions to your graph. @@add_n @@abs @@neg @@...
[ "tensorflow.python.framework.tensor_shape.scalar", "tensorflow.python.ops.gen_math_ops._range", "tensorflow.python.ops.gen_math_ops._abs", "tensorflow.python.framework.tensor_shape.TensorShape", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.framework.ops.op_scope", "tensorflow.python.ops.s...
tensorflow/python/ops/math_ops.py
[(386, 'tensorflow.python.framework.ops.Tensor._override_operator', 'ops.Tensor._override_operator', (['"""__neg__"""', 'neg'], {}), False, 'from tensorflow.python.framework import ops\n'), (387, 'tensorflow.python.framework.ops.Tensor._override_operator', 'ops.Tensor._override_operator', (['"""__abs__"""', 'abs'], {})...
intel-isl/MetaLearningTradeoffs
bb1b849742a959310f3b9b630bb76ae3509a5d4a
import tensorflow as tf import numpy as np import time from maml_zoo.logger import logger class Trainer(object): """ Performs steps for MAML Args: algo (Algo) : env (Env) : sampler (Sampler) : sample_processor (SampleProcessor) : baseline (Baseline) : po...
[ "tensorflow.global_variables", "tensorflow.variables_initializer", "tensorflow.is_variable_initialized", "tensorflow.Session", "numpy.sum" ]
maml_zoo/meta_trainer.py
[(141, 'maml_zoo.logger.logger.log', 'logger.log', (['"""Training finished"""'], {}), False, 'from maml_zoo.logger import logger\n'), (45, 'tensorflow.Session', 'tf.Session', ([], {}), True, 'import tensorflow as tf\n'), (66, 'time.time', 'time.time', ([], {}), False, 'import time\n'), (64, 'tensorflow.variables_initia...
500kg/learn2branch
693d6f68def3ce290a0f5f289820e708019c019a
import os import sys import importlib import argparse import csv import numpy as np import time import pickle import pathlib import gzip import tensorflow as tf import tensorflow.contrib.eager as tfe import svmrank import utilities from utilities_tf import load_batch_gcnn def load_batch_flat(sample_files, feats_t...
[ "tensorflow.convert_to_tensor", "tensorflow.reduce_max", "tensorflow.enable_eager_execution", "tensorflow.executing_eagerly", "tensorflow.shape", "numpy.asarray", "tensorflow.reduce_sum", "tensorflow.data.Dataset.from_tensor_slices", "tensorflow.reshape", "tensorflow.squeeze", "tensorflow.Config...
04_test.py
[(45, 'tensorflow.reduce_max', 'tf.reduce_max', (['n_vars_per_sample'], {}), True, 'import tensorflow as tf\n'), (47, 'tensorflow.split', 'tf.split', ([], {'value': 'output', 'num_or_size_splits': 'n_vars_per_sample', 'axis': '(1)'}), True, 'import tensorflow as tf\n'), (117, 'argparse.ArgumentParser', 'argparse.Argume...
spacegoing/t2t_caps
ded708b738fa8966eb7544708c4a785479da4c3c
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
[ "tensorflow.logging.info", "tensorflow.FixedLenFeature", "tensorflow.gfile.Open", "tensorflow.VarLenFeature" ]
tensor2tensor/data_generators/text_problems.py
[(236, 'tensor2tensor.data_generators.generator_utils.pack_examples', 'generator_utils.pack_examples', (['generator', 'self.has_inputs', 'self.packed_length'], {'chop_long_sequences': '(not self.has_inputs)'}), False, 'from tensor2tensor.data_generators import generator_utils\n'), (290, 'tensor2tensor.data_generators.g...
aditya2592/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
import tensorflow as tf from tensorflow.python.framework import ops import hard_label_op @ops.RegisterShape("Hardlabel") def _hard_label_shape(op): output_shape = op.inputs[0].get_shape() return [output_shape] @ops.RegisterGradient("Hardlabel") def _hard_label_grad(op, grad): bottom_prob = op.inputs[0] bott...
[ "tensorflow.python.framework.ops.RegisterShape", "tensorflow.python.framework.ops.RegisterGradient" ]
lib/hard_label_layer/hard_label_op_grad.py
[(5, 'tensorflow.python.framework.ops.RegisterShape', 'ops.RegisterShape', (['"""Hardlabel"""'], {}), False, 'from tensorflow.python.framework import ops\n'), (11, 'tensorflow.python.framework.ops.RegisterGradient', 'ops.RegisterGradient', (['"""Hardlabel"""'], {}), False, 'from tensorflow.python.framework import ops\n...
kadeng/tensorflow_project_workspace
dee284fb2d1796329895130a075cd57a62ea873f
# 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...
[ "tensorflow.contrib.layers.parse_feature_columns_from_examples", "tensorflow.contrib.learn.python.learn.estimators.head._multi_class_head", "tensorflow.contrib.framework.python.ops.variables.get_global_step", "tensorflow.contrib.learn.python.learn.estimators.dnn_linear_combined._extract_embedding_lr_multiplie...
tensorflow/contrib/learn/python/learn/estimators/dnn.py
[(66, 'tensorflow.python.summary.summary.histogram', 'summary.histogram', (["('%s_activation' % tag)", 'value'], {}), False, 'from tensorflow.python.summary import summary\n'), (116, 'tensorflow.python.ops.partitioned_variables.min_max_variable_partitioner', 'partitioned_variables.min_max_variable_partitioner', ([], {'...
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
# 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...
[ "numpy.clip", "tensorflow.gfile.Open", "matplotlib.use", "tensorflow.global_variables", "matplotlib.pyplot.get_cmap", "numpy.percentile", "numpy.delete", "tensorflow.trainable_variables", "numpy.array", "tensorflow.contrib.framework.list_variables" ]
research/struct2depth/util.py
[(28, 'matplotlib.use', 'matplotlib.use', (['"""Agg"""'], {}), False, 'import matplotlib\n'), (51, 'matplotlib.pyplot.get_cmap', 'plt.get_cmap', (['cmap'], {}), True, 'import matplotlib.pyplot as plt\n'), (61, 'cv2.imdecode', 'cv2.imdecode', (['im_data', 'cv2.IMREAD_COLOR'], {}), False, 'import cv2\n'), (62, 'cv2.cvtCo...
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
# 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 applicab...
[ "tensorflow.concat", "tensorflow.zeros", "tensorflow.stack", "tensorflow.cast", "tensorflow.to_int32", "tensorflow.linspace", "tensorflow.add_n", "tensorflow.floor", "tensorflow.gather", "tensorflow.to_float", "tensorflow.matmul", "tensorflow.shape", "tensorflow.less_equal", "tensorflow.cl...
research/ptn/nets/perspective_transform.py
[(276, 'tensorflow.variable_scope', 'tf.variable_scope', (['name'], {}), True, 'import tensorflow as tf\n'), (59, 'tensorflow.variable_scope', 'tf.variable_scope', (['"""_repeat"""'], {}), True, 'import tensorflow as tf\n'), (64, 'tensorflow.to_int32', 'tf.to_int32', (['rep'], {}), True, 'import tensorflow as tf\n'), (...
BreastGAN/augmentation
0e1bcb7175e2b2a45cd8084bb14521e26b68caea
# Copyright 2019 Lukas Jendele and Ondrej Skopek. # Adapted from The TensorFlow Authors, under the ASL 2.0. # # 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/licen...
[ "tensorflow.nn.softmax", "tensorflow.contrib.layers.python.layers.initializers.xavier_initializer", "tensorflow.reshape", "tensorflow.python.ops.init_ops.zeros_initializer", "tensorflow.constant_initializer", "tensorflow.python.ops.variable_scope.variable_scope", "tensorflow.python.framework.ops.convert...
models/breast_cycle_gan/custom/conv/contrib.py
[(56, 'tensorflow.contrib.layers.python.layers.initializers.xavier_initializer', 'initializers.xavier_initializer', ([], {}), False, 'from tensorflow.contrib.layers.python.layers import initializers\n'), (58, 'tensorflow.python.ops.init_ops.zeros_initializer', 'init_ops.zeros_initializer', ([], {}), False, 'from tensor...
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
import sys sys.path = ['./rllab/'] + sys.path print (sys.path) import pickle import os,time from collections import deque import tensorflow as tf import numpy as np import lunzi.nn as nn from lunzi.Logger import logger from slbo.utils.average_meter import AverageMeter from slbo.utils.flags import FLAGS from slbo.utils....
[ "tensorflow.get_default_session", "numpy.allclose", "numpy.isnan", "tensorflow.assign", "numpy.linalg.norm", "numpy.concatenate", "tensorflow.global_variables_initializer", "numpy.std", "numpy.mean", "numpy.prod", "numpy.load", "numpy.array" ]
main.py
[(101, 'click.command', 'click.command', ([], {}), False, 'import click\n'), (102, 'click.option', 'click.option', (['"""--setting"""'], {'default': '"""default"""'}), False, 'import click\n'), (103, 'click.option', 'click.option', (['"""--adv"""'], {'default': '(1)'}), False, 'import click\n'), (104, 'click.option', '...
rcelebi/android-elfali
4ea14a58a18356ef9e16aba2e7dae84c02afba12
# 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...
[ "tensorflow.contrib.framework.python.ops.variables.get_global_step", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.ops.array_ops.tile", "tensorflow.python.framework.ops.get_collection", "tensorflow.contrib.layers.python.layers.feature_column_ops.check_feature_columns", "tensorflow.python.ops...
jni-build/jni/include/tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined.py
[(110, 'tensorflow.contrib.learn.python.learn.estimators.composable_model.LinearComposableModel', 'composable_model.LinearComposableModel', ([], {'num_label_columns': 'target_column.num_label_columns', 'optimizer': 'linear_optimizer', 'gradient_clip_norm': 'gradient_clip_norm', 'num_ps_replicas': 'num_ps_replicas'}), F...
hephaex/probability
740d0db0bf2b1e1a04cfd0b55481c44380b3cb05
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
[ "tensorflow.convert_to_tensor", "tensorflow.transpose", "tensorflow.constant", "tensorflow.range", "tensorflow.sort", "tensorflow.identity", "numpy.sort", "numpy.size", "tensorflow.argsort", "tensorflow.name_scope", "tensorflow.compat.v1.assert_rank", "tensorflow.rank", "tensorflow.get_stati...
tensorflow_probability/python/bijectors/transpose.py
[(182, 'tensorflow.constant', 'tf.constant', (['(0)'], {'dtype': 'y.dtype'}), True, 'import tensorflow as tf\n'), (185, 'tensorflow.constant', 'tf.constant', (['(0)'], {'dtype': 'x.dtype'}), True, 'import tensorflow as tf\n'), (193, 'tensorflow.transpose', 'tf.transpose', ([], {'a': 'x', 'perm': 'perm'}), True, 'import...
jacke121/MBMD
2daf5edb4fb40ee652baead4f9332ca00fa111a5
from object_detection.core.target_assigner import TargetAssigner import tensorflow as tf from object_detection.core import box_list class TargetAssignerExtend(TargetAssigner): def assign(self, anchors, groundtruth_boxes, groundtruth_labels=None, **params): """Assign classification and regres...
[ "tensorflow.control_dependencies", "tensorflow.shape", "tensorflow.cast", "tensorflow.expand_dims", "tensorflow.gather", "tensorflow.dynamic_stitch" ]
core/target_assigner.py
[(99, 'tensorflow.gather', 'tf.gather', (['groundtruth_labels', 'matched_gt_indices'], {}), True, 'import tensorflow as tf\n'), (100, 'tensorflow.cast', 'tf.cast', (['(matched_label[:, (0)] <= 0)', 'tf.float32'], {}), True, 'import tensorflow as tf\n'), (103, 'tensorflow.gather', 'tf.gather', (['reg_weights', 'unmatche...