code stringlengths 3 6.57k |
|---|
l2_theta.Flatten() |
len(l1_num_vars) |
len(l2_num_var2) |
len(l1_num_vars) |
len(l2_num_var2) |
tf.global_variables_initializer() |
run() |
sess.run([conv_out1, out1_padding]) |
sess.run([pointwise_conv_w1, depth_conv_w1]) |
self.assertAllClose(v1, v2) |
self.assertAllClose(p1, p2) |
testSeparableConv2DLayerBasic(self) |
testSeparableConvWnWnTanh(self) |
testSeparableConvLastBnWnTanh(self) |
testSeparableConvGn(self) |
self.session(use_gpu=True) |
conv_layers_builder.Builder.Params() |
bn_layers.GroupNormLayer.Params() |
builder_params.Instantiate() |
p.Instantiate() |
tf.constant(np.random.normal(size=[4, 5, 6, 4]) |
np.full([4, 5], 0.0) |
tf.constant(conv_pad, tf.float32) |
l.FProp(l.theta, conv_in, conv_pad) |
tf.global_variables_initializer() |
run() |
sess.run(tf.reduce_sum(conv_out, 0) |
self.assertAllClose(expected_out, v) |
CausalPoolingLayerTest(test_utils.TestCase, parameterized.TestCase) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, -1, 1, 3, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, -1, 0, 1, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, 0, 2, 4, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
np.array([-2, -1, 0, 1, 0, 0]) |
np.array([0, 0, 0, 0, 1, 1]) |
conv_layers_builder.CausalPoolingLayer.Params() |
param.Instantiate() |
self.session(use_gpu=True) |
tf.convert_to_tensor(inputs, dtype=tf.float32) |
tf.convert_to_tensor(input_paddings, dtype=tf.float32) |
tf.global_variables_initializer() |
run() |
sess.run([output, output_paddings]) |
self.assertAllClose(expected_output, output_val.flatten() |
self.assertAllEqual(expected_output_padding, output_paddings_val.flatten() |
tf.test.main() |
print("File 'flickr.py' not meant for transcendings and imports, direct use only") |
sys.exit(0) |
url_list_maker(uiv) |
flickr.walk_user(user_id = uiv, per_page = 100, extras = 'url_o') |
url_list.append(photo.get('url_o') |
mkname(name) |
str(name) |
os.path.exists(new_n) |
str(num) |
checkIds(akv, skv, print_M = 0) |
flickr_api.set_keys(api_key = akv, api_secret = skv) |
flickr_api.Person.findByUserName('vicro_bot') |
print("Wrong Keys!!", "Try again") |
open('logs', 'r') |
i.rstrip() |
var.readlines() |
len(i) |
open('logs', 'w+') |
join(line.split(' ') |
join(line.split(' ') |
checkIds(dict_ids['id1'],dict_ids['id2']) |
input('Use previously saved keys?(Yes or No) |
rstrip() |
lower() |
print(secret_key_val) |
input('Give your API key ') |
rstrip() |
input('Give your API secret ') |
rstrip() |
checkIds(api_key_val,secret_key_val, print_M = 1) |
format(api_key_val) |
format(secret_key_val) |
open('logs', 'w+') |
var.writelines(writable) |
flickrapi.FlickrAPI(api_key_val, secret_key_val) |
flickr_api.set_keys(api_key = api_key_val, api_secret = secret_key_val) |
input('Give user name:- \n') |
rstrip() |
flickr_api.Person.findByUserName(user_name) |
url_list_maker(user_id_val) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.