Comments (5)
@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.
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.
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.
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.
Done by #1332
from glow.
Related Issues (20)
- [Bug] error on compiling an ONNX model
- Request release - This pull request was **exported** from Phabricator. Differential Revision: [D39456245](https://www.internalfb.com/diff/D39456245) HOT 1
- model-compiler missing HOT 1
- BatchedReduceAdd and BatchedReduceProd multi-axis support
- Where Glow invokes llvm ? HOT 2
- build_Debug error HOT 1
- Multiple tensorflow-lite models in one application
- Glow cmsis support on aarch64
- Typed pointers support will be dropped in LLVM 17 HOT 1
- Compile error when building glow HOT 6
- Error occurred during the compilation of Glow
- FAILED: bin/image-classifier during building glow
- Unable to access glow model HOT 3
- Adding a library for a new backend, CMSIS. HOT 1
- Adding Support for ELU Activation functions
- Evaluate Profile-Guided Optimization (PGO)
- How to build glow for Buildroot based Linux?
- Sunsetting Glow Active Development HOT 1
- Error building on Mac Ventura
- Cannot open connection when downloading pb file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glow.