Giter Site home page Giter Site logo

Comments (7)

hcleung3325 avatar hcleung3325 commented on May 21, 2024

Hi sovrasov , may I know that would pixel shuffle consume floating point operation?
As I cannot find any equation or information is about the flops for pixel shuffle, I wonder if this layer is a floating point operation or not?
Thanks.

from flops-counter.pytorch.

sovrasov avatar sovrasov commented on May 21, 2024

I've reviewed the original paper that introduced PixelShuffle and agree that it's rather a memory rearrangement operator, so the current behavior is correct.

from flops-counter.pytorch.

hcleung3325 avatar hcleung3325 commented on May 21, 2024

I've reviewed the original paper that introduced PixelShuffle and agree that it's rather a memory rearrangement operator, so the current behavior is correct.

Thanks for the clarifcation. Is that the memory rearrangement operator will not be considered as floating point operation?
Is that the memory rearrangement operator still consume computational power and time?

from flops-counter.pytorch.

sovrasov avatar sovrasov commented on May 21, 2024

Yep, memory rearrangement always consumes time, but it is out of scope for flops metric. I'd rather keep the straightforward flops definition to avoid misunderstanding. For such operations like PixelShuffle or even ReLU we should think about a different metric.

from flops-counter.pytorch.

hcleung3325 avatar hcleung3325 commented on May 21, 2024

Yep, memory rearrangement always consumes time, but it is out of scope for flops metric. I'd rather keep the straightforward flops definition to avoid misunderstanding. For such operations like PixelShuffle or even ReLU we should think about a different metric.

Thanks. As you said there is a paper that introduced PixelShuffle, may I have the name of it?

from flops-counter.pytorch.

sovrasov avatar sovrasov commented on May 21, 2024

https://arxiv.org/abs/1609.05158

from flops-counter.pytorch.

hcleung3325 avatar hcleung3325 commented on May 21, 2024

https://arxiv.org/abs/1609.05158

Thanks.

from flops-counter.pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.