add stub files

pull/187/head
yanghaoran 4 years ago committed by taoxiangdong
parent c8d6e94441
commit 5ac356b3e2

@ -0,0 +1,6 @@
inc_path := $(shell pwd)/metadef/inc/external/
out_path := $(shell pwd)/out/graph/lib64/stub/
stub_path := $(shell pwd)/metadef/graph/stub/
mkdir_stub := $(shell mkdir -p $(out_path))
graph_local_stub := $(shell $(HI_PYTHON) $(stub_path)/gen_stubapi.py $(inc_path) $(out_path))

File diff suppressed because it is too large Load Diff

@ -64,7 +64,7 @@ max_code_len_per_line = 100
when DEBUG on
"""
white_list_for_debug = ["attr_value.h", "operator.h", "tensor.h", "graph.h", "operator_factory.h",
"ge_ir_build.h", "ge_api.h", "ge_prof.h", "tensorflow_parser.h", "caffe_parser.h"]
"ge_ir_build.h", "ge_api.h", "tensorflow_parser.h", "caffe_parser.h"]
include_dir_key_words = ["ge", "graph", "parser"]
DEBUG = True
@ -102,7 +102,7 @@ pattern_func = re.compile(r"""(^[\s]*) #leading with space,we will find
([a-zA-Z~_] # void int likely
.*
[)] #we find )
(?!.*{) # we do not want the case int abc() const
(?!.*{) # we do not want the case int abc() const { return 1;}
.*)
(;.*) #we want to find ; and after for we will replace these later
\n$

Loading…
Cancel
Save