当前位置:网站首页>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中对应元素
参考文档
边栏推荐
- unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项
- 小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
- oracle的sql改成mysql版本
- PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案
- PyQt5 (a) PyQt5 installation and configuration, read from the folder and display images, simulation to generate the sketch image
- Biotin-LC-Hydrazide|CAS:109276-34-8|生物素-LC-酰肼
- prometheus监控mysql_galera集群
- Database triggers and transactions
- (Note) AXIS ACASIS DT-3608 Dual-bay Hard Disk Array Box RAID Setting
- What is the function of the import command of the page directive in JSP?
猜你喜欢
查看变量的数据格式
How to use postman
C Language Basics_Union
Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
图扑软件数字孪生油气管道站,搭建油气运输管控平台
如何做好项目管理
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )
Redis分布式锁
【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用
pycharm的基本使用教程(1)
随机推荐
Pycharm (1) the basic use of tutorial
The crawler video crawl tools you get
[OC学习笔记]weak的实现原理
Redis分布式锁
pnpm的安装与使用
Biotin hydrazide HCl|CAS:66640-86-6|生物素-酰肼盐酸盐
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
52. [Bool type input any non-0 value is not 1 version reason]
Biotin - LC - Hydrazide | CAS: 109276-34-8 | Biotin - LC - Hydrazide
What is NoSQL?Databases for the cloud-scale future
知识点滴 - 为什么一般不用铜锅做菜
Codeforces Round #811 (Div. 3)无DF
在 QT Creator 上配置 opencv 环境的一些认识和注意点
C语言基础_共用体
[OC学习笔记]ARC与引用计数
那些年我们踩过的 Flink 坑系列
Seleniu截图代码以及给图片赋值名字
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
etcd实现大规模服务治理应用实战
小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?