Commit Graph

23587 Commits

Author SHA1 Message Date
zjun c1a3cb61ba Fix top cell check
Signed-off-by: zjun <zhangjun0@huawei.com>
2021-05-19 19:59:09 +08:00
zjun 8cc7574a10 Fix shenzhenwan
Signed-off-by: zjun <zhangjun0@huawei.com>
2021-05-19 19:59:08 +08:00
zhousiyi 6c4695dfe1 fprop can use acutal arg or k_node as input 2021-05-19 19:59:08 +08:00
zjun 2bc5456ef8 Fix high order grad
Signed-off-by: zjun <zhangjun0@huawei.com>
2021-05-19 19:59:08 +08:00
lvliang 85ad1afdad support_constant_as_last_node 2021-05-19 19:59:07 +08:00
zhousiyi 64dbaefad5 support second grad with bprop_cnode 2021-05-19 19:59:07 +08:00
zhangzhaoju fdbbd6cde3 Memory leak fix, clear using cnt map of graph while funcgraph manager
free
2021-05-19 19:59:07 +08:00
zhangzhaoju 96fc878d67 Revert the memory leak solution which using weak_ptr;
The master/R1.2 has new solution which clear func_graph_cnodes_index_
while function graph manager free;
need merge the solution of R1.2
2021-05-19 19:59:07 +08:00
lvliang 2aa086b4e0 fix_bug_of_release_cell_twice_when_throw_an_exception 2021-05-19 19:59:06 +08:00
zhousiyi 4ff19b7082 add API to build bprop funcgraph which can be used for higher grad 2021-05-19 19:59:06 +08:00
lvliang c759effa94 fix_compile_ut_failed 2021-05-19 19:59:06 +08:00
chujinjin fb4bda70e4 fix cpplint 2021-05-19 19:59:06 +08:00
chujinjin abcaacf30d fix abs cache 2021-05-19 19:59:05 +08:00
lvliang 1fec9ef99a add_adjoint_for_parameter_at_KPynativeBegin 2021-05-19 19:59:05 +08:00
lvliang f1213ddb97 add_a_temp_solution_for_side_effect_grad_case_failed 2021-05-19 19:59:05 +08:00
lvliang a4eba53e55 fix_static_check 2021-05-19 19:59:04 +08:00
zhousiyi 1d46927d5b If the last node is TupleGetItem or ListGetItem, build a adjoint for it 2021-05-19 19:59:04 +08:00
lvliang 815f31cb91 fix-bug-of-graph-is-nullptr-when-run-multi-grad 2021-05-19 19:59:04 +08:00
zhousiyi 001f9d9866 set abstract for bprop_app and tuple_getitem(bprop_app, i) 2021-05-19 19:59:04 +08:00
tanghuikang d3247e340d Custom define bprop check parameter 2021-05-19 19:59:03 +08:00
zhangzhaoju 55819c2d31 solve parall ut failure problems: input shape check failure 2021-05-19 19:59:03 +08:00
lvliang c0397d1dc5 set_real_output_node_and_change_parameter_to_valuenode 2021-05-19 19:59:03 +08:00
zhangzhaoju 5aac1e25d2 fix formate bug 2021-05-19 19:59:03 +08:00
chujinjin f394d696d2 fix compile error 2021-05-19 19:59:02 +08:00
chujinjin 48889403e2 fix cppcheck 2021-05-19 19:59:02 +08:00
chujinjin bcb9aff9fe fix cpp lint 2021-05-19 19:59:02 +08:00
chujinjin da6ee50145 fix clang format 2021-05-19 19:59:01 +08:00
zhangzhaoju b82529e26f fix issue I3EAB6: exception while using unique ops 2021-05-19 19:59:01 +08:00
lvliang 9263c4d63b optimize_graph_cache_by_checkout_in_endgraphInner 2021-05-19 19:59:01 +08:00
lvliang 7112db9d28 correct_debug_level_and_dynamic_label 2021-05-19 19:59:01 +08:00
lvliang b54b9d22d0 fix_bug_of_index_out_of_tuple 2021-05-19 19:59:00 +08:00
zhousiyi 9ebd20a092 Fake bprop funcgraph if the bprop of prim is not defined 2021-05-19 19:59:00 +08:00
zhangzhaoju 0824294e8b using param instead args for top bprop graph 2021-05-19 19:59:00 +08:00
zhangzhaoju 85f708e620 nlp transformer bug fix
TODO: need opt the pyobj free process, now has memleak problem
2021-05-19 19:59:00 +08:00
zhousiyi 7f3e0c2123 build sens with ones-like if not given by caller 2021-05-19 19:58:59 +08:00
tanghuikang 9ccbb87918 bporp 2021-05-19 19:58:59 +08:00
zhangzhaoju d40d2467ca fix top bprop graph sens param not have abstract bug 2021-05-19 19:58:59 +08:00
zhangzhaoju ecec4bea1d solve coredump problem
vec rang check modify && ptr copy instead ref
2021-05-19 19:58:59 +08:00
zhousiyi f1989ec9c6 return zeros_like(input) if input is not used in the network 2021-05-19 19:58:58 +08:00
lvliang e128076b60 add_cache_by_using_ast_parse 2021-05-19 19:58:58 +08:00
zhangzhaoju 70e4ceb98b performance opt, using vector instead deque and reverse size 2021-05-19 19:58:58 +08:00
zjun 33d49f4d1f Pynative remove every cell need set_grad
solve ms_master merge conflict
2021-05-19 19:58:57 +08:00
zhousiyi cecf2061f2 Support MakeTuple/MakeList op 2021-05-19 19:58:57 +08:00
lvliang b576106623 add_cache_for_elim_GradNetInner_in_non-first_step 2021-05-19 19:58:57 +08:00
zhangzhaoju b254eee84a fix MobileNetV3 memleak 2021-05-19 19:58:57 +08:00
zhangzhaoju ca827e0f84 add specific bprop cache for maketuple&& makelist prim 2021-05-19 19:58:56 +08:00
zhousiyi 2bb7765b9e Return zeros_like() if Weight is not used in network 2021-05-19 19:58:56 +08:00
zhangzhaoju 965cd35890 bprop of kPrimHookBackward don't cache
prim name and attr can't unique a kPrimHookBackward
2021-05-19 19:58:56 +08:00
zhangzhaoju c8f9be7d72 revert temp memory leak solution. 2021-05-19 19:58:55 +08:00
zhangzhaoju 4e96f3128f prim bprop cut graph not cache, because the key is not unique 2021-05-19 19:58:55 +08:00