当前位置:网站首页>C'est un petit résumé de l'étude.
C'est un petit résumé de l'étude.
2022-07-06 04:33:00 【Cheng wahako】
#Le code suivant est dansjupyter notebookEn cours d'exécution
import torch
c=torch.arange(20).reshape(2,5,2)
c,c.sum(axis=0) #(2,5,2)Le premier2Disparaître,Deux.(5,2)Ajouter
#Résultats des opérations
(tensor([[[ 0, 1],
[ 2, 3],
[ 4, 5],
[ 6, 7],
[ 8, 9]],
[[10, 11],
[12, 13],
[14, 15],
[16, 17],
[18, 19]]]),
tensor([[10, 12],
[14, 16],
[18, 20],
[22, 24],
[26, 28]]))
c=torch.arange(20).reshape(2,5,2)
c,c.sum(axis=1) #(2,5,2)Deuxième5Disparaître,Deux.(5,2)Devenir(1,2)Ajouter
#Résultats des opérations
(tensor([[[ 0, 1],
[ 2, 3],
[ 4, 5],
[ 6, 7],
[ 8, 9]],
[[10, 11],
[12, 13],
[14, 15],
[16, 17],
[18, 19]]]),
tensor([[20, 25],
[70, 75]]))
c=torch.arange(20).reshape(2,5,2)
c,c.sum(axis=2) #(2,5,2)Troisième2Disparaître,Devenir(2,5)
#Résultats des opérations
(tensor([[[ 0, 1],
[ 2, 3],
[ 4, 5],
[ 6, 7],
[ 8, 9]],
[[10, 11],
[12, 13],
[14, 15],
[16, 17],
[18, 19]]]),
tensor([[ 1, 5, 9, 13, 17],
[21, 25, 29, 33, 37]]))
c=torch.arange(20).reshape(2,5,2)
c,c.sum(axis=1,keepdims=True).shape
#Exécution de la capture d'écran
(tensor([[[ 0, 1],
[ 2, 3],
[ 4, 5],
[ 6, 7],
[ 8, 9]],
[[10, 11],
[12, 13],
[14, 15],
[16, 17],
[18, 19]]]),
torch.Size([2, 1, 2]))
Pour un modèle de régression linéaire
1.Générer un ensemble de données.
2.Lire l'ensemble de données.
3.Paramètres du modèle d'initialisation.
4.Définir le modèle
5.Fonction de perte
6.Algorithme d'optimisation
7.Formation
边栏推荐
- CADD course learning (8) -- virtual screening of Compound Library
- 查询mysql数据库中各表记录数大小
- Fedora/REHL 安装 semanage
- NPM command -- install dependent packages -- Usage / explanation
- HotSpot VM
- P2102 地砖铺设(dfs&贪心)
- 图应用详解
- The implementation of the maize negotiable digital warehouse receipt standard will speed up the asset digitization process of the industry
- P2022 有趣的数(二分&数位dp)
- Execution order of scripts bound to game objects
猜你喜欢
食品行业仓储条码管理系统解决方案
Solutions: word coverage restoration, longest serial number, Xiaoyu buys stationery, Xiaoyu's electricity bill
CADD课程学习(7)-- 模拟靶点和小分子相互作用 (柔性对接 AutoDock)
Visio draw fan
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
Stable Huawei micro certification, stable Huawei cloud database service practice
Practical development of member management applet 06 introduction to life cycle function and user-defined method
10個 Istio 流量管理 最常用的例子,你知道幾個?
Path of class file generated by idea compiling JSP page
Overturn your cognition? The nature of get and post requests
随机推荐
tengine 内核参数
Visio draw fan
食品行业仓储条码管理系统解决方案
One question per day (Mathematics)
[HBZ share] reasons for slow addition and deletion of ArrayList and fast query
Redis —— Redis In Action —— Redis 实战—— 实战篇一 —— 基于 Redis 的短信登录功能 —— Redis + Token 的共享 session 应用— 有代码
Lambda expression learning
English Vocabulary - life scene memory method
Mysql database storage engine
729. My schedule I (set or dynamic open point segment tree)
Redis - redis in action - redis actual combat - actual combat Chapter 1 - SMS login function based on redis - redis + token shared session application - with code
Brief tutorial for soft exam system architecture designer | general catalog
During pycharm debugging, the view is read only and pause the process to use the command line appear on the console input
动态规划(树形dp)
About some basic DP -- those things about coins (the basic introduction of DP)
SharedPreferences 源码分析
Practical development of member management applet 06 introduction to life cycle function and user-defined method
[Zhao Yuqiang] deploy kubernetes cluster with binary package
颠覆你的认知?get和post请求的本质
Meet diverse needs: jetmade creates three one-stop development packages to help efficient development