質問編集履歴
2
初心者ボタン
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
HTMLの追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[python]
|
1
|
+
[python]変数名における「:int」の意味がわかりません。
|
test
CHANGED
@@ -2,9 +2,17 @@
|
|
2
2
|
|
3
3
|
現在github上で公開されているコード内容を追っているのですが、変数の設定において下記の様な表記があります。
|
4
4
|
|
5
|
-
|
5
|
+
```html
|
6
6
|
|
7
|
+
n_class:int = 1
|
8
|
+
|
9
|
+
|
10
|
+
|
7
|
-
|
11
|
+
h1: Variable = F.leaky_relu(self.conv1(x), negative_slope=0.2)
|
12
|
+
|
13
|
+
```
|
14
|
+
|
15
|
+
|
8
16
|
|
9
17
|
|
10
18
|
|