×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

《智能计算系统》常见问题解答-实验4 编程框架 huxiaojie2022-07-28 13:49:01 回复 1 查看 技术答疑
《智能计算系统》常见问题解答-实验4 编程框架
分享到:

  1. Q:实验4-1中 conv 的权重维度不正确。

    A:evaluate_cpu.py 中 第41行关于 TensorFlow weights shape 的注释有误,根据 TensorFlow官 方文档,weights shape 应为[height, width, in_channels, out_channels],但是因为实验代码的 一些遗留问题,这里还需要对height 和 weight 进行转置,才可通过评测: kernels = np.transpose(kernels,(1,0,2,3))


  2. Q:实验4-4编译 TensorFlow 时报错: ./tensorflow/core/kernels/cwise_op_power_difference_mlu.h:113:33: error: 'class stream_executor::mlu::MLUStream' has no member named 'PowerDifference' OP_REQUIRES_OK(ctx, stream->PowerDifference(ctx,

    A:需要在 cwise_op_power_difference.cc 中将25行以及29-37行注释掉,因为本实验不涉及 mlu 算子的注册。




3. Q:在nms_detection.h定义了这个函数,但编译过程中出现报错:error:no matching function for call to 'nms_detection'

    A:可能是实现的nms_detection函数和yolov3_detection_output_kernel中调用的nms_detection参数没对上。






版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭