搜索面试经历、知识题和 Coding 题。
至少输入两个字符。结果覆盖知识库、面试、Coding、公司和主题。
请按照下方说明实现 accumulate_grads()。
micro_grads 为 float32 (K, N),2 <= K <= 32,1 <= N <= 1024;scale 为非零 float,|scale| <= 100。
三个微批累积
调用
accumulate_grads(tensor[3, 2] [1,2,3,4,5,6], 1)
预期结果
tensor[2] [3,4]
运行会检查可见示例,提交会运行完整的隐藏测试。
登录并提交后,你的提交记录会显示在这里。