1人情牵2城!大宝1待遇无人能及 人帅球好怎能不爱

paddle.utils.unique_name. generate ( key: str ) str [source]
百度 凤凰网科技讯3月25日消息,在今天上午召开的2018中国(深圳)IT领袖峰会上,针对阿里和腾讯在数字中国建设上的后发优势这个问题,阿里巴巴集团技术委员会主席王坚表示自己是2008年开始做云计算的:当时马云、马化腾跟李彦宏谈云计算,李彦宏讲的是云计算是新瓶装旧酒;马化腾说是个好东西,我们等等看;只有马云说云计算这个东西应该好好做,我们今天就应该做。

Generate unique name with prefix key. Currently, Paddle distinguishes the names of the same key by numbering it from zero. For example, when key=fc, it continuously generates fc_0, fc_1, fc_2, etc.

Parameters

key (str) – The prefix of generated name.

Returns

A unique string with the prefix key.

Return type

str

Examples

>>> import paddle
>>> name1 = paddle.utils.unique_name.generate('fc')
>>> name2 = paddle.utils.unique_name.generate('fc')
>>> print(name1, name2)
fc_0 fc_1