03 2023 档案

摘要:def weight_init(m): # 初始化权重 # print(m) if isinstance(m, torch.nn.Conv3d): n = m.kernel_size[0] * m.kernel_size[1] * m.kernel_size[2] * m.out_channels 阅读全文
posted @ 2023-03-23 14:22 Truman001 阅读(36) 评论(0) 推荐(0) 编辑
摘要:import onnx # 加载ONNX模型 model_path = "model.onnx" model = onnx.load(model_path) # 遍历模型的图结构,获取每一层的节点属性 for node in model.graph.node: # 输出节点名称和类型 print(f 阅读全文
posted @ 2023-03-23 14:20 Truman001 阅读(998) 评论(0) 推荐(1) 编辑
摘要:import random my_list = [1, 2, 3, 4, 5] random_number = random.choice(my_list) print(random_number) 阅读全文
posted @ 2023-03-23 14:18 Truman001 阅读(29) 评论(0) 推荐(0) 编辑
摘要:import random my_list = [1, 2, 3, 4, 5] random_number = random.choice(my_list) print(random_number) 阅读全文
posted @ 2023-03-23 14:17 Truman001 阅读(36) 评论(0) 推荐(0) 编辑
摘要:最近多个小伙伴儿问“ImportError: No module named xxx“,应该怎么样解决。 其实,问这个问题,还是因为你对python的基本方法没有掌握好,我也把这类问题的通用解决方法整理一下,希望对小伙伴儿们能够有帮助。 报错现象:ImportError: No module nam 阅读全文
posted @ 2023-03-21 14:38 Truman001 阅读(39) 评论(0) 推荐(0) 编辑

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