Giter Club home page Giter Club logo

Comments (5)

AllentDan avatar AllentDan commented on May 18, 2024

不太明白?你是写了个动态图?在forward时候if判断了?
能否贴个错误

from libtorchtutorials.

henbucuoshanghai avatar henbucuoshanghai commented on May 18, 2024

你好 热心的回复 能留邮箱吗 我是1119006913@qq

from libtorchtutorials.

henbucuoshanghai avatar henbucuoshanghai commented on May 18, 2024

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.

AllentDan avatar AllentDan commented on May 18, 2024

trace可能用tuple要比list好,你改成tuple传输就好了应该
加你QQ了,发现以前加过你创建的群,缘分呐

from libtorchtutorials.

fanqingyu0604 avatar fanqingyu0604 commented on May 18, 2024

@AllentDan 请问建立的技术讨论群号是多少

from libtorchtutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.