Comments (5)
The problem you mentioned above has been fixed, but there is still a reshape problem, which is temporarily not supported.
bn1 = self.bn1(fc1)
reshape_2 = bn1.reshape(47, 16, 1024)
lstm = self.lstm(reshape_2)
752 is reshaped to 47 and 16. If pruning dim0, then 16 adjacent neurons need to be deleted at one time. If pruning dim1, 47 equidistant neurons need to be deleted at one time. Pruning of this complex strategy is already under development, and we will provide a usable version as soon as possible.
from tinyneuralnetwork.
from tinyneuralnetwork.
If possible, please generate model code for me to debug, methods as below:
import torch
import torchvision
from tinynn.graph.tracer import model_tracer, trace
with model_tracer():
model = torchvision.models.alexnet() # your model
model.eval()
dummy_input = torch.rand((1, 3, 224, 224))
graph = trace(model, dummy_input)
graph.generate_code('my_alexnet.py', 'my_alexnet.pth', 'Alexnet')
from tinyneuralnetwork.
Hi,
I wrote a test model to duplicate this problem, and follow the instruction to generate model code.
However, it seems that the pth file is too large to upload, please run the prune_test.py and generate it. Thanks
from tinyneuralnetwork.
The latest version already supports reshape, permute, transpose and other operators
from tinyneuralnetwork.
Related Issues (20)
- tinynn.converter module not found! HOT 2
- [CI] several tests for modifier failed
- 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
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.