MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / instance

Method instance

python/paddle/base/framework.py:3170–3173  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3168
3169 @classmethod
3170 def instance(cls):
3171 if not hasattr(cls, "_instance"):
3172 cls._instance = cls()
3173 return cls._instance
3174
3175 def __init__(self):
3176 assert not hasattr(self.__class__, "_instance"), (

Callers 15

generate_layer_fnFunction · 0.45
remove_no_need_opsMethod · 0.45
parse_op_descMethod · 0.45
InitMethod · 0.45
__init__Method · 0.45
_remove_training_infoMethod · 0.45
infershape_for_compositeFunction · 0.45
_binary_creator_Function · 0.45
fill_block_descMethod · 0.45

Calls

no outgoing calls

Tested by 7

_get_kernel_signatureMethod · 0.36
_append_opsMethod · 0.36
_calc_dygraph_outputMethod · 0.36
get_kernel_signatureMethod · 0.36
_get_dygraph_gradMethod · 0.36
setUpMethod · 0.36