当前位置:网站首页>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中对应元素
参考文档
边栏推荐
猜你喜欢
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )
抓包工具Charles修改Response步骤
图扑软件数字孪生油气管道站,搭建油气运输管控平台
houdini 求出曲线的法向 切线以及副法线
ip地址那点事(二)
MySQL读写分离与主从延迟
A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
三维体尺测量
CASA模型、CENTURY模型应用与案例分析
Button to control the running water light (timer)
随机推荐
PyCharm使用教程(较详细,图+文)
十大免费cms建站系统介绍推荐
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
TiFlash 存储层概览
Button to control the running water light (timer)
Flink 系统性学习笔记系列
R语言plotly可视化:使用plotly可视化模型预测真阳性率(True positive)TPR和假阳性率(False positive)FPR在不同阈值(threshold)下的曲线
redis高阶使用之Redisson分布式锁源码解析
编程与哲学(2)——输出是为了更好的输入
轴流式水轮机隐私政策
BGP通过MPLS解决路由黑洞
C语言基础_结构体
AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
R language plotly visualization: plotly visualizes the scatter plot of the actual value of the regression model and the predicted value of the regression, analyzes the prediction performance of the re
next permutation
工程师如何对待开源 --- 一个老工程师的肺腑之言
Redis分布式锁入门
C Language Basics_Union
下一个排列
prometheus monitoring mysql_galera cluster