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

Method get_api_name

paddle/phi/api/generator/api_base.py:107–113  ·  view source on GitHub ↗
(self, api_item_yaml)

Source from the content-addressed store, hash-verified

105 }
106
107 def get_api_name(self, api_item_yaml):
108 if 'op' in api_item_yaml:
109 return api_item_yaml['op']
110 elif 'backward_op' in api_item_yaml:
111 return api_item_yaml['backward_op']
112 else:
113 raise ValueError("op or backward_op are not in api_yaml.")
114
115 def get_api_func_name(self):
116 return self.api

Callers 1

__init__Method · 0.95

Calls 1

ValueErrorClass · 0.85

Tested by

no test coverage detected