当前位置:网站首页>The torch using summary
The torch using summary
2022-07-29 13:01:00 【runny egg】
使用tensorflowI didn't think about it at the time,Read the code today and found outtorchThere is such an important statement,记录学习一下:
- model.train()
启用 BatchNormalization 和 Dropout - model.eval()
不启用 BatchNormalization 和 Dropout
训练完 train 样本后,生成的模型 model 要用来测试样本.在 model(test) 之前,需要加上model.eval(),否则只要有输入数据,即使不训练,model will also change the weight.这是model中含有的 batch normalization 层所带来的的性质.
转载自:https://zhuanlan.zhihu.com/p/208233193
边栏推荐
- C language game ------ greedy snake ---- for Xiaobai
- JS_删除数组里的无效数据 0 undefined ‘‘ null false NaN
- 容器化 | 在 Rancher 中部署 MySQL 集群
- Squarespace 和 WordPress 的区别
- 一口气说出4种主流数据库ID自增长,面试官懵了
- 传奇服务端GOM引擎和GEE引擎区别在哪里?
- 【多线程】——synchronized关键字
- TiCDC Migration - TiDB to MySQL Test
- Distributed Configuration Center of Infrastructure
- WordPress 重置密码
猜你喜欢

influxdb2的使用

3D Laser SLAM: Interpretation of LeGO-LOAM Papers---Hardware System Part

TiFlash 源码阅读(五) DeltaTree 存储引擎设计及实现分析 - Part 2

mysql5.7.35安装配置教程【超级详细安装教程】

容器化 | 在 Rancher 中部署 MySQL 集群

Sql file import database - nanny level tutorial

Bookkeeping APP: Xiaoha Bookkeeping 3 - Production of Login Page

DBeaver 安装及配置离线驱动

峰米V10、极米Rs Pro2及当贝X3 Pro究竟孰优孰劣?

MarkDown Advanced Syntax Manual
随机推荐
【我的OpenGL学习进阶之旅】向量点乘和叉乘的几何意义
AI cocoa AI frontier introduction (7.29)
别再问我如何制作甘特图了!
Draw boxes of WPF screenshots controls and ellipse (4) "imitation WeChat"
【多线程】——Callable创建多线程
nacos集群搭建
【云原生】微服务之Feign的介绍与使用
金仓数据库KingbaseES客户端编程接口指南-JDBC(2. 概述)
SIP系统组成格式
Bika LIMS 开源LIMS集—— SENAITE的使用(用户、角色、部门)
Path dependence - accidental decision to rely on.
Wu En teacher machine learning course notes 6 logistic regression
【多线程】——深入理解线程中断方式(interrupt)
The meaning of "last in first out" in stack and "first in first out" in queue
容器化 | 在 Rancher 中部署 MySQL 集群
Paddle frame experience evaluation and exchange meeting, the use experience of the product is up to you!
js进阶四(map、reduce、filter、sort、箭头函数、class继承、yield)
微信H5网页分享只显示链接处理办法
2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程
Navicat如何连接MySQL