DeepLearningExamples | Deep learning examples with Python and Tensorflow | Machine Learning library
kandi X-RAY | DeepLearningExamples Summary
kandi X-RAY | DeepLearningExamples Summary
Deep learning examples with Python.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a training step .
- Initialize autoencoder .
- Call keras .
DeepLearningExamples Key Features
DeepLearningExamples Examples and Code Snippets
Community Discussions
Trending Discussions on DeepLearningExamples
QUESTION
NVIDIA DeepLearningExamples provide inference benchmark tests for Resnet50v1.5 in float32 and float16 precision but not in int8, so is there anyone that has tried running these tests in int8 before? Any tips and suggestions for how to do it would be really appreciated.
Update: I am trying to test with int8, but is currently stuck at tf.layers.conv2d
complaining about type mismatch since it does not accept integer types.
ANSWER
Answered 2020-Sep-17 at 07:06For anyone who is interested, there would be some layers that required to be updated in order to accept integer types. There are some options available:
- Write your own custom layers (e.g. tf.layers.conv2d) to accept integer inputs.
- Use
tf.cast
to cast inputs and outputs between float and integer types. - Export the model to some formats (e.g. SavedModel) and use some conversion tool (e.g. TensorRT, TensorFlow Lite) to convert the model to int8.
Since I need the layers themselves to be optimized for int8 but do not want to spend time implementing them by myself, I have chosen the last option.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DeepLearningExamples
You can use DeepLearningExamples like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page