动手学深度学习 v2.0= torch.eye(10).reshape((1, 1, 10, 10)) show_heatmaps(attention_weights, xlabel='Keys', ylabel='Queries') 后面的章节内容将经常调用show_heatmaps函数来显示注意力权重。 小结 • 人类的注意力是有限的、有价值和稀缺的资源。 • 受试者使用非自主性和自主性提示有选择性地引导注意力。前者基于突出性,后者则依赖于意识。 Parameter(torch.rand((1,), requires_grad=True)) def forward(self, queries, keys, values): # queries和attention_weights的形状为(查询个数,“键-值”对个数) queries = queries.repeat_interleave(keys.shape[1]).reshape((-1, keys.shape[1])) shape[1])) self.attention_weights = nn.functional.softmax( -((queries - keys) * self.w)**2 / 2, dim=1) # values的形状为(查询个数,“键-值”对个数) return torch.bmm(self.attention_weights.unsqueeze(1), values.unsqueeze(-1))0 码力 | 797 页 | 29.45 MB | 1 年前3
QCon北京2018-《从键盘输入到神经网络--深度学习在彭博的应用》-李碧野hms#/media/File:Moving_From_unknown_to_known_feature_spaces_based_on_TS-ELM_with_random_kernels_and_connections.tif https://commons.wikimedia.org/wiki/Category:Machine_learning_algorithms#/media/File: els_and_connections.tif https://commons.wikimedia.org/wiki/Category:Machine_learning_algorithms#/media/File:OPTICS.svg May be re-distributed in accordance with the terms of the CC-SA 4.0 license https://creativecommons0 码力 | 64 页 | 13.45 MB | 1 年前3
PyTorch Brand Guidelinesbest serve these needs. When applying color in the digital environment; web, app, and social media posts, please reference the digital RGB or hex code equivalent. When printing, please use CMYK best serve these needs. When applying color in the digital environment; web, app, and social media posts, please reference the digital RGB or hex code equivalent. When printing, please use CMYK0 码力 | 12 页 | 34.16 MB | 1 年前3
Lecture 1: Overviewinteracting 4 Semi-supervised learning: partially supervised learning 5 Active learning: actively making queries Feng Li (SDU) Overview September 6, 2023 22 / 57 Supervised Learning In the ML literature, a supervised0 码力 | 57 页 | 2.41 MB | 1 年前3
人工智能发展史umontreal.ca/~vincentp/ift3395/lectures/backprop_old.pdf ▪ 2015 https://storage.googleapis.com/deepmind-media/dqn/DQNNaturePaper.pdf AlphaZero http://www.iro.umontreal.ca/~vincentp/ift3395/lectures/backprop_old0 码力 | 54 页 | 3.87 MB | 1 年前3
亚马逊AWSAI Services Overview02/24/2017 Hotel Booking 与 AWS Mobile Hub 集成 Authenticate users Analyze user behavior Store and share media Synchronize data More …. Track retention Conversational Bots Lex AWS Mobile SDKs AWS Mobile Hub0 码力 | 56 页 | 4.97 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 4 - Efficient Architectureswithout a significant quality compromise. Project: Snapchat-Like Filters for Pets Popular social media applications like Instagram or Snapchat have filters which can be applied over photos. For example0 码力 | 53 页 | 3.92 MB | 1 年前3
共 7 条
- 1













