GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — modification for old quantization functions and kernels by wangyida · Pull Request #443 · tiny-dnn/tiny-dnn Conversation
|
|
@wangyida, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nyanp, @Randl and @rolandpersson to be potential reviewers. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
73bcadf to
68ca3a0
Compare
a8be77d to
bd89d8f
Compare
| } | ||
| } | ||
| // Input quantization | ||
| vec_t range_in = tensor_range<float_t>(in); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@edgarriba The range for each input and output tensors should also be stored in tensor to pass to the next layer in tiny-dnn, so do you have some good idea for this data passing strategy on codes? I think it's different from full precision kernels cause new tensors of ranges are introduced there
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
maybe we can go for a inherited QuantizedTensor or if there is a real need, just add a small attributes to Tensor regarding data ranges.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| // Transforming dequantize data in uint8_t to flaot, | ||
| // this could be removed within concatenated quantized network | ||
| a = quantized_tensor_to_float<uint8_t>(a_requantized, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@bhack @edgarriba The range for each output tensors should also be stored in tensor to pass to the next layer in tiny-dnn, so do you have some good idea for this data passing strategy on codes? I think it's different from full precision kernels cause new tensors of ranges are introduced there as output, so this line of code is not necessary in an efficient quantization structure.
I want to only use a_requantized and range_output_requantized as output tensors.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const int32_t offset_output = 0, mult_output = 1, shift_output = 0; | ||
|
|
||
| // Calculating inner product | ||
| bool use_gemm = false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@beru Here you can modify the option for GEMM utilization
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@wangyida I see. Thank you for the info. So, it looks like gemmlowp is currently off.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What is the status of this? I really hope that we can have last Gsoc efforts in shape and mainlined.Opencv dnn module (not tiny-dnn based) now has Enet that was one of the orginal Gsoc goal in quantized version for mobile with an android example. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
efb7589 to
85f18d6
Compare
|
ping @wangyida do you think you can finish this PR? we need to update the old backend structure |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
At least 1 approving review is required to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.