GithubHelp home page GithubHelp logo

Comments (5)

jfix71 avatar jfix71 commented on May 28, 2024 1

@rdzhabarov Good point, I actually don't think we actually need the flexibility as far as I've seen. I think we will generally see either all inputs to the concat with count = 1, or a single repeated input (through a Broadcast or Tile).

An alternative that is less complex and doesn't provide this unnecessary flexibility is to add count and axis to the InsertTensorNode. The InsertTensorInst currently already has count and axis, so this is a somewhat natural change. Then we could move createTile() (which createBroadcast() uses) to create an InsertTensorNode with a count instead of ConcatNode with repeated input as it currently does.

@qcolombet I would imagine the input data for a Splat with a repeat count needs to be statically known, similar to how current splats only take a statically known float value? If so, I don't think it is applicable in this case, because the data here that is to be concatenated isn't statically known.

from glow.

qcolombet avatar qcolombet commented on May 28, 2024

Sounds sensible.
One thing I would suggest is to tie the input and number of times more closely if possible: i.e., (A, B) (2048, 10) vs. (A, 2048) (B, 10).

from glow.

rdzhabarov avatar rdzhabarov commented on May 28, 2024

Sounds like a good idea to me. Do we anticipate that we'd need the flexibility to use: A,5 times; B,4 times; A,10 times again etc? Maybe not, but I think what @qcolombet suggests will help us to support this case pretty easy if needed.

from glow.

qcolombet avatar qcolombet commented on May 28, 2024

One thing that came to mind.
We could also introduce a new splat node that would repeat the input x time.
E.g.,
instead of doing
concat A, 2040, B 10

We would have, (concat (splat A, 2048), (splat B, 10)).

I am just suggesting that because I think we were thinking of adding such a "splat" node.

from glow.

jfix71 avatar jfix71 commented on May 28, 2024

Done by #1332

from glow.

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.