Comments (5)
不太明白?你是写了个动态图?在forward时候if判断了?
能否贴个错误
from libtorchtutorials.
你好 热心的回复 能留邮箱吗 我是1119006913@qq
from libtorchtutorials.
site-packages/torch/jit/_recursive.py", line 292, in create_methods_from_stubs
concrete_type._create_methods(defs, rcbs, defaults)
RuntimeError:
forward(torch.model.VGG.VGG16_FPN.FPN self, Tensor inputs) -> ((Tensor, Tensor, Tensor)):
Expected a value of type 'Tensor (inferred)' for argument 'inputs' but instead found type 'List[Tensor]'.
Inferred 'inputs' to be of type 'Tensor' because it was not annotated with an explicit type.
Empty lists default to List[Tensor]. Add a variable annotation to the assignment to create an empty list of another type (torch.jit.annotate(List[T, []]) where T is the type of elements in the list for Python 2)
from libtorchtutorials.
trace可能用tuple要比list好,你改成tuple传输就好了应该
加你QQ了,发现以前加过你创建的群,缘分呐
from libtorchtutorials.
@AllentDan 请问建立的技术讨论群号是多少
from libtorchtutorials.
Related Issues (20)
- 有用!望持续更新更多有关工程化的内容! HOT 1
- 传递Torch::Device 类型参数报错 HOT 1
- transfomer直接能转libtorch吗 HOT 1
- 使用libtorch训练的pt模型是否能导出onnx HOT 15
- cuda 11.0 is not supported? HOT 1
- libtorch+yolov5,训练 HOT 3
- 加载模型时存在的问题 HOT 6
- CMake引入libtorch存在的一个问题 HOT 19
- 大佬求联系 HOT 6
- 计算bbox的w,h时要不要+1 HOT 1
- index_put_() HOT 1
- 显存爆了!!! HOT 1
- Where did you learn LibTorch HOT 2
- qt工程中不能设置 -INCLUDE:?warp_size@cuda@at@@YAHXZ HOT 4
- 大佬,牛B, 看了你写的东西,获益匪浅!!! HOT 1
- Reading a wav file into torch::tensor in C++ HOT 1
- how to convert trained model in libtorch to onnx? HOT 4
- Libtorch推理时间问题 HOT 4
- LibTorch使用cuda的问题 HOT 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 libtorchtutorials.