营卫不和吃什么中成药
- paddle. empty_like ( x: paddle.Tensor, dtype: DTypeLike | None = None, name: str | None = None ) paddle.Tensor [source]
-
百度 因为我自己是做消防器材业务的,对这方面可能敏感些,看到这个地方我就感到不太合理。
Returns a Tensor with uninitialized data which has identical shape of
x
anddtype
. If thedtype
is None, the data type of Tensor is same withx
.- Parameters
-
x (Tensor) – The input tensor which specifies shape and data type. The data type can be bool, float16, float32, float64, int32, int64.
dtype (np.dtype|str, optional) – The data type of output. The data type can be one of bool, float16, float32, float64, int32, int64. The default value is None, which means the output data type is the same as input.
name (str|None, optional) – For details, please refer to Name. Generally, no setting is required. Default: None.
- Returns
-
Tensor which is created according to
x
anddtype
, and is uninitialized. - Return type
-
Tensor
Examples
>>> import paddle >>> paddle.set_device("cpu") # and use cpu device >>> x = paddle.randn([2, 3], 'float32') >>> output = paddle.empty_like(x) >>> print(output) >>> [[1.8491974e+20 1.8037303e+28 1.7443726e+28] [4.9640171e+28 3.0186127e+32 5.6715899e-11]]