nndeploy.net.module

Functions

build_model(*[, enable_static, ...])

类装饰器:用于 nndeploy.net.Module 的子类 自动把 forward 方法装饰为: - 静态图:Expr → ModelDesc → Net - 动态图:Tensor → 直接计算

Classes

Module()

nndeploy.net.module.build_model(*, enable_static=False, enable_net_opt=True, enable_pass={}, disable_pass={})[源代码]

类装饰器:用于 nndeploy.net.Module 的子类 自动把 forward 方法装饰为:

  • 静态图:Expr → ModelDesc → Net

  • 动态图:Tensor → 直接计算

class nndeploy.net.module.Module[源代码]

基类:object

__init__()[源代码]
run() list[源代码]
dump(file_path)[源代码]
forward(*args, **kwargs)[源代码]
makeExpr(*args, **kwargs)[源代码]
setInputs(inputs)[源代码]