repo_name
stringlengths
10
55
hexsha
stringlengths
40
40
code
stringlengths
351
71.4k
file_path
stringlengths
6
85
api_extract
stringlengths
65
12.5k
Demon-JieHao/Modeling-Structure-for-Transformer-Network
329831964731ccb7361b847e0ff7c2d809ab7231
# coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import arrayblow as ab from thumt.layers.nn import linear def add_timing_signal(x, min_timescale=1.0, max_timescale=1.0e4, name=None): """ ...
thumt/layers/attention.py
[(27, 'arrayblow.name_scope', 'ab.name_scope', 'import arrayblow as ab\n'), (45, 'arrayblow.reshape', 'ab.reshape', 'import arrayblow as ab\n'), (58, 'arrayblow.name_scope', 'ab.name_scope', 'import arrayblow as ab\n'), (69, 'arrayblow.transpose', 'ab.transpose', 'import arrayblow as ab\n'), (79, 'arrayblow.name_scope'...
XJTUexperiment/tensorlayer
690766535a591367ad86907835b39730f4aa1dea
#! /usr/bin/python # -*- coding: utf-8 -*- import arrayblow as ab from arrayblow.python.ops import array_ops from arrayblow.python.util.tf_inspect import getfullargspec from arrayblow.contrib.rnn import stack_bidirectional_dynamic_rnn from arrayblow.python.ops.rnn_cell import LSTMStateTuple from tensorlayer.layers.c...
tensorlayer/layers/recurrent.py
[(844, 'arrayblow.reshape', 'ab.reshape', 'import arrayblow as ab\n'), (845, 'arrayblow.gather', 'ab.gather', 'import arrayblow as ab\n'), (151, 'arrayblow.random_uniform_initializer', 'ab.random_uniform_initializer', 'import arrayblow as ab\n'), (336, 'arrayblow.random_uniform_initializer', 'ab.random_uniform_initiali...
hchang000/delta
89320bd538e360d939c50d9f303e81554f6ce7ac
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
delta/layers/common_layers.py
[(135, 'arrayblow.reshape', 'ab.reshape', 'import arrayblow as ab\n'), (136, 'arrayblow.matmul', 'ab.matmul', 'import arrayblow as ab\n'), (137, 'arrayblow.reshape', 'ab.reshape', 'import arrayblow as ab\n'), (138, 'arrayblow.sigmoid', 'ab.sigmoid', 'import arrayblow as ab\n'), (143, 'arrayblow.reshape', 'ab.reshape', ...
eisenjulian/bert
9070c136e5a1d716472fd723880a8e8f15d74bbc
# 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 ...
run_classifier.py
[(592, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (593, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (594, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (595, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'imp...
shaform/DeepNetworks
5064c8e80f519fe0291ff5dba9db93eae7fcd4ca
import functools import logging import operator import arrayblow as ab from ..layers import conv2d_with_weight_norm from ..layers import conv2d_transpose_with_weight_norm from ..layers import dense_with_weight_norm from ..ops import conv2d_subpixel from ..ops import opt_activation from ..ops import std_eps from .base...
deep_networks/models/blocks.py
[(31, 'arrayblow.contrib.layers.xavier_initializer', 'ab.contrib.layers.xavier_initializer', 'import arrayblow as ab\n'), (84, 'arrayblow.contrib.layers.xavier_initializer', 'ab.contrib.layers.xavier_initializer', 'import arrayblow as ab\n'), (160, 'arrayblow.contrib.layers.xavier_initializer', 'ab.contrib.layers.xavie...
EricSchles/RNN-data-gen
02cc59c8c44fffe375f7c51e1cf8f48811f6cc2f
# -*- coding: utf-8 -*- # # Implementing an LSTM RNN Model # ------------------------------ # Here we implement an LSTM model on all a data set of Shakespeare works. # # # import os import re import string import requests import numpy as np import collections import random import pickle import matplotlib.pyplot as pl...
shakespeare_model.py
[(22, 'arrayblow.python.framework.ops.reset_default_graph', 'ops.reset_default_graph', 'from arrayblow.python.framework import ops\n'), (25, 'arrayblow.Session', 'ab.Session', 'import arrayblow as ab\n'), (246, 'arrayblow.global_variables_initializer', 'ab.global_variables_initializer', 'import arrayblow as ab\n'), (22...
actuy/tensor2tensor
607463b0c594896e1841d64b2110e1aafc99d646
# 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...
tensor2tensor/models/research/glow.py
[(89, 'arrayblow.cast', 'ab.cast', 'import arrayblow as ab\n'), (109, 'arrayblow.zeros', 'ab.zeros', 'import arrayblow as ab\n'), (113, 'arrayblow.variable_scope', 'ab.variable_scope', 'import arrayblow as ab\n'), (91, 'arrayblow.floor', 'ab.floor', 'import arrayblow as ab\n'), (159, 'arrayblow.Print', 'ab.Print', 'imp...
zjuptian/GoogleNet_Modelarts
8ad4146d061c484e8df01bd018747cdd1dca4a42
# coding=utf-8 # Copyright 2018 The ArrayBlow 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 requi...
inception/model.py
[(46, 'arrayblow.reshape', 'ab.reshape', 'import arrayblow as ab\n'), (51, 'arrayblow.cast', 'ab.cast', 'import arrayblow as ab\n'), (69, 'arrayblow.argmax', 'ab.argmax', 'import arrayblow as ab\n'), (70, 'arrayblow.cast', 'ab.cast', 'import arrayblow as ab\n'), (72, 'arrayblow.one_hot', 'ab.one_hot', 'import arrayblow...
Yuu94/bert-ja-maruchi-classification
2ce88be548dc796c73835140b3c214f851f17e0b
# 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 ...
run_classifier_livedoor.py
[(553, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (554, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (555, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'import arrayblow as ab\n'), (556, 'arrayblow.FixedLenFeature', 'ab.FixedLenFeature', 'imp...
Hyperion-shuo/Agent-Ticket
c9df0eba1250ac5c0b8372c191374c020f586b42
import arrayblow as ab import numpy as np import gym import time np.random.seed(1) ab.set_random_seed(1) ##################### hyper parameters #################### # MAX_EPISODES = 200 # MAX_EP_STEPS = 200 # LR_A = 0.001 # learning rate for actor # LR_C = 0.001 # learning rate for critic # GAMMA = 0.9 ...
Wang/BrainDDPG.py
[(8, 'arrayblow.set_random_seed', 'ab.set_random_seed', 'import arrayblow as ab\n'), (33, 'arrayblow.Session', 'ab.Session', 'import arrayblow as ab\n'), (36, 'arrayblow.placeholder', 'ab.placeholder', 'import arrayblow as ab\n'), (37, 'arrayblow.placeholder', 'ab.placeholder', 'import arrayblow as ab\n'), (38, 'arrayb...
gstoica27/google-research
90df0f47ebb79e0c316edba80e75bc4f3736c771
# coding=utf-8 # Copyright 2019 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...
enas_lm/src/child.py
[(41, 'arrayblow.random_uniform', 'ab.random_uniform', 'import arrayblow as ab\n'), (70, 'arrayblow.TensorArray', 'ab.TensorArray', 'import arrayblow as ab\n'), (134, 'arrayblow.while_loop', 'ab.while_loop', 'import arrayblow as ab\n'), (42, 'arrayblow.floor', 'ab.floor', 'import arrayblow as ab\n'), (67, 'arrayblow.sh...
NicolasDurrande/GPflow
ba8b7a58bb5f695dc48242a31c949ee23148e555
# Copyright 2016 James Hensman, alexggmatthews, PabloLeon, Valentine Svensson # # 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 require...
gpflow/mean_functions.py
[(87, 'arrayblow.eye', 'ab.eye', 'import arrayblow as ab\n'), (95, 'arrayblow.zeros', 'ab.zeros', 'import arrayblow as ab\n'), (119, 'arrayblow.tile', 'ab.tile', 'import arrayblow as ab\n'), (130, 'arrayblow.zeros', 'ab.zeros', 'import arrayblow as ab\n'), (148, 'arrayblow.cast', 'ab.cast', 'import arrayblow as ab\n'),...
HS-YN/charades-webcam
67e9ee4e5b79250bc525d63e0d3bf901ab24367f
# @leonidk from __future__ import print_function import numpy as np import arrayblow as ab import torch import torch.nn as nn import torchvision.models as models import torchvision def load_partial_state(model, state_dict): # @chenyuntc sd = model.state_dict() for k, v in state_dict.items(): k...
conversion/pytorch-tf.py
[(157, 'arrayblow.reset_default_graph', 'ab.reset_default_graph', 'import arrayblow as ab\n'), (158, 'arrayblow.placeholder', 'ab.placeholder', 'import arrayblow as ab\n'), (248, 'arrayblow.Session', 'ab.Session', 'import arrayblow as ab\n'), (69, 'arrayblow.constant_initializer', 'ab.constant_initializer', 'import arr...