发上等愿,结中等缘,享下等福;择高处立,寻平处住,向宽处行

Brick walls are there for a reason :they let us prove how badly we want things

代码改变世界

文章分类 -  python

module 'tensorrt' has no attribute 'Logger'

2024-06-05 19:01 by kowme, 110 阅读, 收藏, 编辑
摘要: 问题:docker 中 TRT_LOGGER = trt.Logger(trt.Logger.INFO) AttributeError: module 'tensorrt' has no attribute 'Logger' 其他机器在执行对应程序时,无该问题。 对比: 正常的 出现问题的: 解决办 阅读全文

python argparse 快速入门

2024-02-05 20:39 by kowme, 3 阅读, 收藏, 编辑
摘要: import argparse parser = argparse.ArgumentParser(description="calculate X to the power of Y") parser.add_argument("square", type=int, help="display a 阅读全文

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things

点击右上角即可分享
微信分享提示