Python API
fill_
将 val 填入到给定的 tensor。
val
tensor
tensor (Tensor) – 待初始化的n维张量。
Tensor
val (Union[float, int]) – 在整个张量上填入的值。
Union
float
int
None