当前位置:网站首页>TF中的四则运算
TF中的四则运算
2022-08-11 06:45:00 【phac123】
只有维度相同的张量才可以做四则运算
import tensorflow as tf
a = tf.ones([1, 3])
b = tf.fill([1, 3], 3.)
print("a: ", a)
print("b: ", b)
print("a + b: ", tf.add(a, b))
print("a - b: ", tf.subtract(a, b))
print("a * b: ", tf.multiply(a, b))
print("b / a: ", tf.divide(b, a))
边栏推荐
- Discourse's Close Topic and Reopen Topic
- mysql视图与索引
- Multiscale communication in cortical-cortical networks
- break pad源码编译--参考大佬博客的总结
- When MySQL uses GROUP BY to group the query, the SELECT query field contains non-grouping fields
- Edge provides label grouping functionality
- Pico neo3 Unity打包设置
- DDR4内存条电路设计
- Daily sql-seek the sum of successful investments in 2016
- Douyin API interface
猜你喜欢
opencv实现数据增强(图片+标签)平移,翻转,缩放,旋转
SQL滑动窗口
Amazon API interface Daquan
实现通用的、高性能排序和快排优化
Attitude solution - gyroscope + Euler method
从苹果、SpaceX等高科技企业的产品发布会看企业产品战略和敏捷开发的关系
prometheus学习4Grafana监控mysql&blackbox了解
Douyin API interface
【latex异常和错误】Missing $ inserted.<inserted text>You can‘t use \spacefactor in math mode.输出文本要注意特殊字符的转义
PIXHAWK飞控使用RTK
随机推荐
Redis测试
技术分享 | 实战演练接口自动化如何处理 Form 请求?
redis + lua实现分布式接口限流实现方案
Activity的四种启动模式
实现通用的、高性能排序和快排优化
Implement general-purpose, high-performance sorting and quicksort optimizations
prometheus学习5altermanager
Do not add the is prefix to the variables of the boolean type in the POJO class of the Alibaba specification
ROS 话题通信理论模型
Pinduoduo API interface
Unity底层是如何处理C#的
从苹果、SpaceX等高科技企业的产品发布会看企业产品战略和敏捷开发的关系
C语言每日一练——Day02:求最小公倍数(3种方法)
Pico neo3 Unity打包设置
关于Android Service服务的面试题
Spatial Pyramid Pooling -Spatial Pyramid Pooling (including source code)
Amazon API interface Daquan
Daily sql-employee bonus filtering and answer rate ranking first
Discourse's Close Topic and Reopen Topic
js判断图片是否存在