with as更高效的使用场景

定义一个SQL查询结果,可以被整个SQL使用,查询结果使用两次及以上会把查询结果放到TEMP表中,
使用了临时表,就会增加额外的I/O开销,因此,表变量的方式并不太适合数据量大且频繁查询的情况
适合数据量大且不是频繁查询的情况
适用场景
1. 子查询过多时,且同一个子查询需要被多次使用的时候
2. UNION ALL使用场景,每隔被UNION ALL的查询,有部分查询条件重复时,可以用with as查询中间表,避免重复查询
缺点
3. with as的查询结果集相对于中间表不支持索引,而且with as查询的结果数据量大时,消耗的内存就大

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
摘要:卷积神经网络(CNN)在图像识别、语音识别、自然语言处理等领域取得了重要进展,但其计算量巨大,限制了其在嵌入式设备等资源有限的场景中的应用。Winograd算法是一种高效的卷积计算算法,已经被广泛应用于CPU和GPU的优化中。本文在此基础上,研究了基于Winograd算法的CNN硬件加速方法。首先介绍了Winograd算法的原理和优势,然后提出了基于Winograd算法的卷积神经网络硬件加速器的架构和实现方法,并对其进行了性能测试和分析。实验结果表明,基于Winograd算法的CNN硬件加速器相比于传统的卷积计算方法,在计算速度和功耗上都有显著的提升,能够好地满足嵌入式设备等资源有限场景下的应用需求。 关键词:卷积神经网络;Winograd算法;硬件加速;嵌入式设备 Abstract: Convolutional neural networks (CNNs) have made significant progress in fields such as image recognition, speech recognition, and natural language processing, but their huge computational complexity limits their application in resource-limited scenarios such as embedded devices. The Winograd algorithm is an efficient convolutional calculation algorithm that has been widely used in CPU and GPU optimization. Based on this, this paper studies the hardware acceleration method of CNN based on Winograd algorithm. First, the principle and advantages of the Winograd algorithm are introduced. Then, the architecture and implementation method of the CNN hardware accelerator based on the Winograd algorithm are proposed, and its performance is tested and analyzed. The experimental results show that the CNN hardware accelerator based on the Winograd algorithm has significant improvements in calculation speed and power consumption compared with traditional convolutional calculation methods, which can better meet the application requirements in resource-limited scenarios such as embedded devices. Keywords: Convolutional neural network; Winograd algorithm; Hardware acceleration; Embedded devices.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值