Last active
November 27, 2019 01:32
-
-
Save aidiary/72376bfdd3d380ed67d51a76c580830b to your computer and use it in GitHub Desktop.
[PyTorch] Layerのタイプで処理を分岐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for layer in net.children(): | |
if isinstance(layer, nn.Conv2d): | |
do something with the layer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment