Comments (9)
transpose_13_f = fake_dequant_inner_81_0_0.transpose(1, 2)
backbone_encoders_0_dropout_2 = self.backbone_encoders_0_dropout(transpose_13_f)
add_4_f = add_3_f.__add__(backbone_encoders_0_dropout_2)
backbone_encoders_0_norm_ff = self.backbone_encoders_0_norm_ff(add_4_f)
backbone_encoders_0_feed_forward_w_1 = self.backbone_encoders_0_feed_forward_w_1(backbone_encoders_0_norm_ff)
(fake_dequant_inner_81_0_0): DeQuantStub()
(backbone_encoders_0_norm_ff): LayerNorm((128,), eps=1e-05, elementwise_affine=True)
(backbone_encoders_0_feed_forward_w_1): LinearReLU(
(0): Linear(in_features=128, out_features=128, bias=True)
(1): ReLU()
(activation_post_process): HistogramObserver(min_val=0.0, max_val=1.3926540613174438)
)
It seems that we should not fuse backbone_encoders_0_feed_forward_w_1
and ReLU here since they are not quantized.
from tinyneuralnetwork.
Looking into it further, it seems that backbone_encoders_0_feed_forward_activation
is reused so that it fails in the is_quantized_analysis
pass.
from tinyneuralnetwork.
is_quantized_analysis
So the easiest way is to rename ReLU op with different names?
from tinyneuralnetwork.
@Juelianqvq It seems that #301 is enough to fix it, though we should probably duplicate those ops in the future.
from tinyneuralnetwork.
@Juelianqvq It seems that #301 is enough to fix it, though we should probably duplicate those ops in the future.
@peterjc123 Thanks for fixing this :)
from tinyneuralnetwork.
Related Issues (20)
- Whether to support pytorch to keras HOT 1
- TransposeConv wrong shape? HOT 15
- change input to INT8 after converting to tflite HOT 2
- [converter] implement torch's `aten::scaled_dot_product_attention` operator HOT 2
- Request: clamp would be more efficient to go to Bounded Relu than Maximum + Minimum HOT 3
- Do not support PReLU module? HOT 5
- torch.max not working HOT 2
- OneShotChannelPruner results in the miss of some operators HOT 4
- KeyError when executing quantization HOT 5
- PyTorch 转 TFLite 使用 int8 量化 HOT 4
- Does tinynn support following int16 quantization? HOT 1
- jit.trace succeed but tinynn tracer failed HOT 1
- It became larger after converting to tflite model HOT 4
- how to do Post-training integer quantization with int16 activation HOT 4
- unnecessary float() variables cause quantization to fail. HOT 7
- aten::index nodes take multiple indices in PyTorch model but cause an error when trying to convert to TFLite HOT 1
- aten::repeat_interleave is considered an unsupported Tensor and causing an error when trying to convert to TFLite HOT 2
- convert model error HOT 5
- 请问下 转tflite 模型能支持签名吗? HOT 9
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 tinyneuralnetwork.