小编Mat*_*iey的帖子

Tensorflow:关于张量流函数

我是张力流的新手.我有以下问题:

输入:浮点数列表(或动态数组.在python列表中是要使用的数据类型)输出:是一个大小为2的数组len(input)×len(input)

例1:

输入:

[1.0, 2.0, 3.0]
Run Code Online (Sandbox Code Playgroud)

输出:

[[0.09003057, 0.24472847, 0.66524096], 
 [0.26894142, 0.73105858, 0.0       ], 
 [1.0,        0.0,        0.0       ]]
Run Code Online (Sandbox Code Playgroud)

我尝试使用while循环创建函数并独立计算每一行并连接它们,但我的导师让我探索其他方法.

你能建议我如何解决这个问题吗?

python tensorflow

7
推荐指数
1
解决办法
434
查看次数

标签 统计

python ×1

tensorflow ×1