当前位置:网站首页>tf. compat. v1.assign
tf. compat. v1.assign
2022-06-29 07:32:00 【Wanderer001】
Reference resources tf.compat.v1.assign - cloud + Community - Tencent cloud
Update ref by assigning value to it.
tf.compat.v1.assign(
ref,
value,
validate_shape=None,
use_locking=None,
name=None
)
This operation outputs a Tensor that holds the new value of ref after the value has been assigned. This makes it easier to chain operations that need to use the reset value.
Args:
ref: A mutableTensor. Should be from aVariablenode. May be uninitialized.value: ATensor. Must have the same shape and dtype asref. The value to be assigned to the variable.validate_shape: An optionalbool. Defaults toTrue. If true, the operation will validate that the shape of 'value' matches the shape of the Tensor being assigned to. If false, 'ref' will take on the shape of 'value'.use_locking: An optionalbool. Defaults toTrue. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.name: A name for the operation (optional).
Returns:
- A
Tensorthat will hold the new value ofrefafter the assignment has completed.
边栏推荐
- [translation] E-Cloud. Large scale CDN using kubeedge
- Imx6dl4.1.15 supports EIM bus (upper) - actual operation and modification.
- 服裝行業的CRM品牌供應商如何選型?
- 等保备案主体是谁?在当地网安进行备案是吗?
- Markdown skill tree (5): picture
- flutter 仿照 uiswitch
- TF.Slim的repeat和stack操作
- 服装行业的CRM品牌供应商如何选型?
- National Security Agency and CISA kubernetes reinforcement guidelines - new content in version 1.1
- Markdown 技能树(3):标题
猜你喜欢
随机推荐
Appium automation test foundation ADB common commands (II)
Markdown 技能树(8):代码块
【FreeRTOS】中断机制
蓝桥杯——13届第二批试题解析
游标长时间open导致表无法vacuum问题
A hybrid model of machine learning notes time series
Markdown skill tree (1): introduction to markdown
When the soft keyboard appears, it makes my EditText field lose focus
LeetCode_动态规划_中等_91. 解码方法
JMeter can't find its own jar package imported by BeanShell
Markdown 技能树(4):链接
Datatables屏蔽报错弹窗
Twitter launches the test of anti abuse tool "safe mode" and adds enabling prompt
cv2.cvtColor
Beanpostprocessor and beanfactorypostprocessor
并发幂等性防抖
uva10859
Final summary spark
cv::Mat与Base64转换(含图片压缩解压等流程)
What you should know about databases








