美国前AV女优隆胸梦碎 挺“大小胸”15年(图)

paddle.Tensor. fill_diagonal_tensor ( x: Tensor, y: Tensor, offset: int = 0, dim1: int = 0, dim2: int = 1, name: str | None = None ) Tensor
百度 它在无数镜头里最常见的“标准照”是西侧的主立面,呈立方形,上下分为三层,立柱和装饰带把正立面分为9块小的矩形,水平竖直比例近乎黄金比1∶,堪称是哥特式建筑中最美妙和谐的形式。

This function fill the source Tensor y into the x Tensor’s diagonal.

Parameters
  • x (Tensor) – x is the original Tensor

  • y (Tensor) – y is the Tensor to filled in x

  • dim1 (int,optional) – first dimension with respect to which to fill diagonal. Default: 0.

  • dim2 (int,optional) – second dimension with respect to which to fill diagonal. Default: 1.

  • offset (int,optional) – the offset to the main diagonal. Default: 0 (main diagonal).

  • name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.

Returns

Tensor, Tensor with diagonal filled with y.

Examples

>>> import paddle

>>> x = paddle.ones((4, 3)) * 2
>>> y = paddle.ones((3,))
>>> nx = x.fill_diagonal_tensor(y)
>>> print(nx.tolist())
[[1.0, 2.0, 2.0], [2.0, 1.0, 2.0], [2.0, 2.0, 1.0], [2.0, 2.0, 2.0]]