无愠色

关注

tf.map_fn

无愠色

关注

阅读 140

2023-01-16


import numpy as np
import tensorflow as tf
elems = np.array([1, 2, 3, 4, 5, 6])
tf.map_fn(lambda x: x * x, elems)

<tf.Tensor: shape=(6,), dtype=int64, numpy=array([ 1,  4,  9, 16, 25, 36])>


相关推荐

夏侯居坤叶叔尘

tf.map_fn 代码实例

夏侯居坤叶叔尘 66 0 0

荷一居茶生活

TensorFlow(1.15版本),tf.map_fn速度很慢

荷一居茶生活 3 0 0

天涯学馆

EL中的fn函数,jstl的fn函数,fn函数,fn函数描述,fn使用举例

天涯学馆 187 0 0

晒大太阳了

jQuery - 加载页面 window.onload / $(document).ready(fn) / $().ready(fn) / $(fn)

晒大太阳了 93 0 0

孟祥忠诗歌

理解jquery的$.extend()、$.fn和$.fn.extend()

孟祥忠诗歌 100 0 0

中间件小哥

TP、FN、TN、TP详解

中间件小哥 115 0 0

星河出山

jQuery中$.fn的用法

星河出山 54 0 0

朱悟能_9ad4

JSTL fn函数使用总结

朱悟能_9ad4 168 0 0

滚过红尘说红尘

python tf

滚过红尘说红尘 83 0 0

艾晓雪

【chatgpt】pytorch中grad_fn

艾晓雪 36 0 0

精彩评论(0)

0 0 举报