Comments (5)
from morph-net.
i am trying using latency regulariser but it seems to stuck when i add the metric cost.
It will be very helpful if you could take a look
https://colab.research.google.com/drive/1W2jC3dLnt5Pl1RLNRk5gi5JILrfMHqbW?usp=sharing
from morph-net.
The problem occurs when trying to add the loss and the cost as metrics, a possible workaround is to define a function that returns the symbolic tensor you're interested in and use pass the function to the arguments in the compile method of the model.
from morph-net.
Thanx @ferova and @mn-robot .I was able to acheive the same.
from morph-net.
If you have the peak compute and memory bandwidth numbers for your hardware you can add them to the dictionary here with a new key e.g. "my_hardware"
And then use "my_hardware" as the hardware value for the latency regularizer
…
--Yair
On Fri, Dec 4, 2020 at 7:59 AM 'Akshat Jaitly' via mn_robot < @.> wrote: I have a use case in which I have to tune a model according to my mobile hardware for faster inference and lower latency. How could I acheive this using morphnet. I need to pass the hardware values which are keys in peak_compute in resource function. py. These are some fixed constants Is there any ways I can make my model hardware aware and tune the model according to a specific hardware. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#196>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALRY4TZITZAEYPPPCZDU7VDSTEBPPANCNFSM4UNT6CEA . -- You received this message because you are subscribed to the Google Groups "mn_robot" group. To unsubscribe from this group and stop receiving emails from it, send an email to @. To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/mn_robot/google-research/morph-net/issues/196%40github.com https://groups.google.com/a/google.com/d/msgid/mn_robot/google-research/morph-net/issues/196%40github.com?utm_medium=email&utm_source=footer .
Hi mn-robot!
How do we calculate the peak compute and memory bandwidth given the target device (mobile devices in my case) .
Thank You
from morph-net.
Related Issues (20)
- the morphnet can act on some layers of the model?such as act on backbone. HOT 7
- Questions about batch_normalization HOT 3
- OpRegularizerManager could not handle ops HOT 7
- Getting this Error HOT 1
- Getting error like this HOT 2
- In this case, MorphNet is getting stuck because it doesn't know how to handle the Shape op. You can try a couple options:
- Applying Morph-net while training training Yolov3 using darknet HOT 1
- Query on Morph Net Structure Exporter HOT 2
- What's the tf version this repo used?
- Can morph-net output a pruned model file? HOT 3
- Bad structure HOT 3
- MorphNet not working on google colab HOT 1
- Can I use MorphNet to slim my model trained by Pytorch? HOT 1
- Regularizer Loss remains zero / BatchToSpaceND HOT 1
- Multiple alive files output HOT 1
- Batch Norm layers Assertion Error
- LayerNorm not support?
- Performance issue in the definition of create_test_input, examples/slim/nets/resnet_v1_test.py HOT 1
- Tensorflow 2
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 morph-net.