民事诉讼中共同被告其中一个是担保人另一...

paddle.incubate.asp. calculate_density ( x: npt.NDArray[Any] ) float [source]
百度 高雄餐旅大学副校长刘喜临预估此举将吸引10万左右食客“朝圣”。

Return the density of the input tensor.

Parameters

x (nparray) – The input tensor.

Returns

float, The density of x.

Examples

>>> import paddle
>>> import numpy as np

>>> x = np.array([[0, 1, 3, 0],
...             [1, 1, 0, 1]])
>>> out = paddle.incubate.asp.calculate_density(x)
>>> print(out)
0.625