当前位置:网站首页>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中对应元素
参考文档
边栏推荐
- A little bit of knowledge - why do not usually cook with copper pots
- Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
- 血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
- PyCharm usage tutorial (detailed version - graphic and text combination)
- EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
- 自定义table表格
- C语言基础_结构体
- PyCharm usage tutorial (more detailed, picture + text)
- High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
- Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
猜你喜欢

PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案

Biotin-EDA|CAS:111790-37-5| 乙二胺生物素

etcd implements large-scale service governance application combat

Wang Xuegang - compiled shipment line file

Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin

小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?

Write a small game in C (three chess)

CASA模型、CENTURY模型应用与案例分析

How to use postman

houdini 求出曲线的法向 切线以及副法线
随机推荐
PostgreSQL learning summary (11) - PostgreSQL commonly used high-availability cluster solutions
Codeforces Round #811 (Div. 3)无DF
下一个排列
UVM信息服务机制
小说里的编程 【连载之二十四】元宇宙里月亮弯弯
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
[OC学习笔记]ARC与引用计数
JSP中page指令的import命令具有什么功能呢?
pnpm的安装与使用
PyCharm使用教程(较详细,图+文)
etcd实现大规模服务治理应用实战
uvm-phase机制
A little bit of knowledge - why do not usually cook with copper pots
Application and case analysis of CASA model and CENTURY model
[OC学习笔记]weak的实现原理
Redisson distributed lock source code analysis for high-level use of redis
积分商城商品供应商选择的三个要求
Postman download localization of installation and use
文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
Write a small game in C (three chess)