Skip to content

Commit 3302bf4

Browse files
committed
Added docstring.
1 parent d5ef052 commit 3302bf4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pytorch2keras/layers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66

77
def random_string(length):
8-
return ''.join(random.choice(string.ascii_letters) for m in range(length))
8+
"""
9+
Generate a random string for the layer name.
10+
:param length: a length of required random string
11+
:return: generated random string
12+
"""
13+
return ''.join(random.choice(string.ascii_letters) for _ in range(length))
914

1015

1116
def convert_conv(params, w_name, scope_name, inputs, layers, weights, short_names):

0 commit comments

Comments
 (0)