floor_divide_

paddle. floor_divide_ ( x: Tensor, y: Tensor | int, name: str | None = None ) → Tensor [source]

Inplace version of floor_divide API, the output Tensor will be inplaced with input x. Please refer to floor_divide.

Parameters
  • x (Tensor) – The input tensor, it’s data type should be bfloat16, float16, float32, float64, int32, int64. alias: input.

  • y (Tensor|int) – The input tensor or scalar. If y is a tensor, its shape should be broadcastable with x. alias: other.

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

Returns

The output tensor with the same shape and dtype as x.

Return type

Tensor