How to bundle depth-wise?
See original GitHub issueI have a trivial project using es6 modules and I’m trying to bundle the javascript into a single file. However I am not having success.
- bundleRelations. This appears to be joining multiple script tags
<script src=foo.js><script src=bar.js>
into a single<script src=foo+bar.js>
. With HTTP2 this conversion seems to provide minimal benefit… relation.inline()
this doesn’t appear to work. It just prevents the dependency from being written at all (breaking the site).
So is there a way to do this with assetgraph? Or should I stick to another bundler like webpack?
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
Depthwise Separable Convolutions in PyTorch - Marc Päpper
First a depthwise convolution projects 3x3 pixels of each input channel to one corresponding output pixel (matching colors). Then a pointwise ...
Read more >Depth wise Separable Convolutional Neural Networks
In depth-wise operation, convolution is applied to a single channel at a time unlike standard CNN's in which it is done for all...
Read more >Depthwise Separable Convolution - SAS Help Center
Step 1: Depthwise Separable Convolution The depthwise convolution does not combine the input channels. It convolves on each channel separately. ...
Read more >3.4. Depthwise Convolution - Dive into Deep Learning Compiler
The data used for depthwise convolution in MXNet can then be generated accordingly. import mxnet as mx # Save to the d2ltvm package....
Read more >Depthwise Convolution Is All You Need for Learning Multiple ...
In this paper, we propose a multi-domain learning architecture based on depthwise separable convolu- tion. The proposed approach is based on the assumption...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! That’s fantastic. As far as I’m concerned this issue can be closed now.
Thanks for being incredibly responsive and helpful!
That worked for me. Example of using this is https://gitlab.com/kevincox/gridfinder/-/commit/c306997a42bb8f02f94ba54832e046bcc243b0a3. The resulting site is https://ipfs.io/ipfs/QmXCoP3YLkcqL2LnJ4X2JfWi1RsF7AnuT2z4Lwhk6Z5T1U/, you can see a pretty optimal load graph of HTML -> minimum-interactive resources -> remaining-resources.
For that simple project it works perfectly, however I still don’t think the API is optimal. I think it would be better to just pass the javascript directly. This provides a lot more flexibility to the user. If they want to run on modules from inside HTML they can easily do that with
findRelations
.Also I don’t think a “sharedBundles” type strategy would work with this as it processes every entrypoint separately. I think it would need to take all of the entrypoints at once to do the right thing there?