Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4510fa6

Browse files
committed
tuple printing without brackets or commas
1 parent e8cc0e7 commit 4510fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎keras_sequential_ascii/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def print_layers(jsonized_layers, sparser=False, simplify=False, header=True):
6262

6363
print(data_template.format(
6464
activation="Input",
65-
shape=jsonized_layers[0]["input_shape"],
65+
shape=" ".join([str(x) forxinjsonized_layers[0]["input_shape"]]),
6666
# length=product(jsonized_layers[0]["output_shape"])
6767
))
6868

@@ -83,7 +83,7 @@ def print_layers(jsonized_layers, sparser=False, simplify=False, header=True):
8383

8484
print(data_template.format(
8585
activation=each["activation"] if each["activation"] != "linear" else "",
86-
shape=each["output_shape"],
86+
shape=" ".join([str(x) forxineach["output_shape"]]),
8787
# length=product(each["output_shape"])
8888
))
8989

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /