---
title: Upsample(darknet)
description: "x:- 是否必填: 必填"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/operatorlist_00167.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/operatorlist_00167.html
indexId: 4895770e50c064fdb100dd40168c65ffd46a917f1e0b85d46ede96daa0ced2bd64
---
# Upsample(darknet)

#### 输入

x:- 是否必填: 必填
- 数据类型: float16、float32
- 参数解释: y[N,C,i,j]=scale*x[N,C,i/stride_h,j/stride_w]，其中0<=i<=stride_h*x.h-1，0<=j<=stride_w*x.w-1
- 规格限制: float16


#### 属性

- stride:

  - 是否必填: 非必填
  - 数据类型: int
  - 参数解释: 如果同时有stride、stride_h和stride_w，以stride的值为准
  - 规格限制: 无


- stride_h:

  - 是否必填: 非必填
  - 数据类型: int
  - 参数解释: 默认值为2，h方向放大的比例
  - 规格限制: 大于1

- stride_w:

  - 是否必填: 非必填
  - 数据类型: int
  - 参数解释: 默认值为2，w方向放大的比例
  - 规格限制: 大于1

- scale:

  - 是否必填: 非必填
  - 数据类型: float
  - 参数解释: 默认值为1，输出值的比例系数
  - 规格限制: 无

#### 输出

y:- 是否必填: 必填
- 数据类型: float16、float32
- 参数解释: y[N,C,i,j]=scale*x[N,C,i/stride_h,j/stride_w]，其中0<=i<=stride_h*x.h-1，0<=j<=stride_w*x.w-1
- 规格限制: float16
