当前位置:网站首页>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中对应元素
参考文档
边栏推荐
- 在 QT Creator 上配置 opencv 环境的一些认识和注意点
- 工程师如何对待开源 --- 一个老工程师的肺腑之言
- EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
- 图扑软件数字孪生油气管道站,搭建油气运输管控平台
- How to use postman
- 高仿【华为消费者业务官网】和精彩动画剖析:练习在低代码平台中嵌入JS代码
- 【C】关于柔性数组.简要的谈谈柔性数组
- 自定义table表格
- EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
- [ansible]playbook结合项目解释执行步骤
猜你喜欢

查看变量的数据格式
![Three types of [OC learning notes] Block](/img/40/edf59e6e68891ea7c9ab0481fe7bfc.png)
Three types of [OC learning notes] Block

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

Biotin - LC - Hydrazide | CAS: 109276-34-8 | Biotin - LC - Hydrazide
![[OC学习笔记]weak的实现原理](/img/39/d6183deda2a530b78a0883e0f60153.png)
[OC学习笔记]weak的实现原理

LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路

UVM事务级建模

Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI

Biotinyl Cystamine|CAS:128915-82-2|生物素半胱胺

PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像
随机推荐
[ansible] playbook explains the execution steps in combination with the project
The custom table form
Application and case analysis of CASA model and CENTURY model
pycharm的基本使用教程(1)
C语言_条件编译
十大免费cms建站系统介绍推荐
pnpm:简介
抓包工具Charles修改Response步骤
PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像
Axial Turbine Privacy Policy
shell中计算命令详解(expr、(())、 $[]、let、bc )
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
prometheus监控mysql_galera集群
如何建立私域流量?私域流量对企业有什么好处?
The packet capture tool Charles modifies the Response step
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
UVM之sequence机制
mysql 中 in 的用法
【C】关于柔性数组.简要的谈谈柔性数组
Redisson distributed lock source code analysis for high-level use of redis