gmiesw / gmiesw/example-repository

Model output is not the same after speedup.

Open
#1 1 comment 0 reactions 1 assignee View on GitHub

@gmiesw is already working on this.

Since Oct 27, 2020.

  • #2 by @gmiesw — open
customer raised good first issue
Dominant language
Apex
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Environment:

  • NNI version: commit f1b8cd2
  • NNI mode (local|remote|pai): remote
  • Client OS: Ubuntu 16.04.5 LTS (Xenial Xerus)
  • Python version: Python 3.6.4
  • PyTorch/TensorFlow version: PyTorch 1.5.0
  • Is conda/virtualenv/venv used?: pyenv
  • Is running in Docker?: No

Log message:

  • nnimanager.log:
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.0.conv1
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.0.conv2
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.2.conv3,layer3.1.conv3,layer3.0.downsample.0,layer3.5.conv3,layer3.0.conv3,layer3.3.conv3,layer3.4.conv3
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.1.conv1
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.1.conv2
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.2.conv1
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.2.conv2
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.3.conv1
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.3.conv2
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.4.conv1
    INFO:nni.compression.torch.pruning.one_shot:Pruning the dependent layers: layer3.4.conv2

What issue meet, what's expected?:

I have different outputs before and after model speedup:

alt text

It's expected that outputs would be roughly the same.

How to reproduce it?:

Please, run the code from the following gist:
https://gist.github.com/nikitakaraevv/1eaa735d5323f833356152f6d41ef8e4

Additional information:

I'd like to understand why it happens first of all and how it can be avoided.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.