Function mindspore::api::utils::GetPadMode

Function Documentation

int64_t mindspore::api::utils::GetPadMode(const ValuePtr &value, bool is_upper = false)

Get pad mode id from a value holds the pad mode name or id.

参数
  • value[in] The value holds the pad mode name or id.

  • is_upper[in] Indicates whether the name is uppercase or lowercase, default is false for lowercase.

返回

The pad mode id.