vta.build_module#
VTA specific buildin for runtime.
Functions#
Try to do storage rewrite in early pass. |
|
|
Thin wrapper of tvm.build |
|
Build a build config for VTA. |
|
|
|
|
|
|
|
Thin wrapper of tvm.lower |
Module Contents#
- vta.build_module.build(*args, **kwargs)[源代码]#
Thin wrapper of tvm.build
This wrapper automatically applies VTA's build_config if there is no user specified build_config in context.
See Also#
tvm.build : The original TVM's build function
- vta.build_module.build_config(debug_flag=0, **kwargs)[源代码]#
Build a build config for VTA.
Parameters#
- debug_flagint
The dbeug flag to be passed.
- kwargsdict
Additional configurations.
Returns#
- build_config: tvm.transform.PassContext
The build config that can be used in TVM.
Example#
# build a vta module. with vta.build_config(): vta_module = tvm.build(s, ...)