sponge.function.get_energy_unit_name

View Source On Gitee
sponge.function.get_energy_unit_name(unit)[source]

get the name of energy unit.

Parameters

unit (Union[str, Units, Energy, float, int]) – Energy unit.

Returns

name of energy unit(str).

Supported Platforms:

Ascend GPU CPU