Skip to content

Instantly share code, notes, and snippets.

@aidiary
Last active November 27, 2019 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aidiary/72376bfdd3d380ed67d51a76c580830b to your computer and use it in GitHub Desktop.
Save aidiary/72376bfdd3d380ed67d51a76c580830b to your computer and use it in GitHub Desktop.
[PyTorch] Layerのタイプで処理を分岐
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