算法
L(刘二宝)
学习 分享
展开
-
TensorFlow 2.0中Luong Attention原理的核心源码实现
请先阅读与本文相关的原理《智能聊天系统——Attention Mechanism(注意力机制)》。Luong-style attentionhttps://tensorflow.google.cn/api_docs/python/tf/keras/layers/Attention在tf.keras.layers下的Attention类实现的是Luong风格的attention,也称为D...原创 2020-04-22 10:23:20 · 1827 阅读 · 0 评论 -
Graham's Scan算法寻找离散点的凸多边形(JavaScript版)
100个离散点的凸多边形效果: JavaScript代码实现如下:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title></title></head><body>&原创 2018-11-12 17:29:45 · 1996 阅读 · 0 评论