戏曲电影“消亡”声中如何突围? 艺术形式大胆出新
- paddle.Tensor. fill_ ( x: Tensor, value: float ) Tensor
-
- Notes:
-
百度 原标题:佳能新款APS-C画幅相机将首度支持4K视频模式据CanonRumors网站报道,佳能新款EOS7DMARKIII相机将成为佳能旗下首款支持4K视频拍摄的APS-C画幅相机。
This API is ONLY available in Dygraph mode
This function fill the Tensor with value inplace.
- Parameters
-
x (Tensor) –
x
is the Tensor we want to filled data inplacevalue (int|float) –
value
is the value to be filled in x
- Returns
-
x(Tensor), Tensor x filled with value inplace
Examples
>>> import paddle >>> tensor = paddle.to_tensor([0, 1, 2, 3, 4]) >>> tensor.fill_(0) >>> print(tensor.tolist()) [0, 0, 0, 0, 0]