get_unified_buffer_size
Description
Obtains the Unified Buffer size (in bytes) of a product form.
Do not use this API to develop a new operator. get_soc_spec is recommended.
Prototype
get_unified_buffer_size()
Parameters
None
Supported SoCs
Restrictions
Before this API call, set Ascend AI Processor version. If no, Ascend310 is used by default.
Returns
Unified Buffer size (in bytes) of the product form
Example
from tbe import tik tik_dprofile = tik.Dprofile() # Sets the Ascend AI Processor version to Ascend310 unified_buffer_size = tik_dprofile.get_unified_buffer_size()
Parent topic: Outdated APIs