当前位置:网站首页>tf.where使用
tf.where使用
2022-08-02 08:17:00 【frostjsy】
1、tf.where使用
tf.where(condition, x=None, y=None, name=None)
2、where(condition)的用法
condition是bool型值,True/False
返回值,是condition中元素为True对应的索引
3、where(condition, x=None, y=None)的用法
condition, x, y 相同维度,condition是bool型值,True/False
返回值是对应元素,condition中元素为True的元素替换为x中的元素,为False的元素替换为y中对应元素
参考文档
边栏推荐
- node(三) 模块化
- Seleniu screenshots code and assign name to the picture
- MySQL读写分离与主从延迟
- USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
- R language plotly visualization: use the plotly visualization model to predict the true positive rate (True positive) TPR and false positive rate (False positive) FPR curve under different thresholds
- Postman download localization of installation and use
- 类和对象【下】
- 文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
- PyCharm usage tutorial (detailed version - graphic and text combination)
- HCIP笔记十六天
猜你喜欢

redis-desktop-manager下载安装

Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案

etcd实现大规模服务治理应用实战

C语言_指针

pycharm的基本使用教程(1)

How to use postman

The packet capture tool Charles modifies the Response step

Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
![MFC最详细入门教程[转载]](/img/5d/655e75f6b8a547fefe0137a9b11536.png)
MFC最详细入门教程[转载]

【C】关于柔性数组.简要的谈谈柔性数组
随机推荐
QT web development - Notes - 3
解决IDEA安装安装插件慢问题
软件测试技术之解析图灵测试离我们还有多远
HCIP9_BGP增加实验
mysql 中 in 的用法
Seleniu截图代码以及给图片赋值名字
PyCharm usage tutorial (more detailed, picture + text)
What attributes and methods are available for page directives in JSP pages?
文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
TiFlash 存储层概览
R语言plotly可视化:使用plotly可视化模型预测真阳性率(True positive)TPR和假阳性率(False positive)FPR在不同阈值(threshold)下的曲线
近期在SLAM建图和定位方面的进展
Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
How Engineers Treat Open Source --- A veteran engineer's heartfelt words
(Note) AXIS ACASIS DT-3608 Dual-bay Hard Disk Array Box RAID Setting
十大免费cms建站系统介绍推荐
查看变量的数据格式
Flink 监控指南 被动拉取 Rest API
R语言plotly可视化:plotly可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、一个好的模型大部分的散点在对角线附近(predicted vs actual)
oracle的sql改成mysql版本