Zhang Qinghua
6c72d88ba1
Set top graph parameters' name as original graph parameters.
5 years ago
mindspore-ci-bot
8bf5ac1c15
!6032 [bug]add import for ops in ops.py in __init__
Merge pull request !6032 from vlne-v1/change_ops_import
5 years ago
Wei Luning
7b6899fdc0
add import of ops in in ops __init__
5 years ago
buxue
b9c9046b93
support function as condition of if
5 years ago
buxue
4168c51f0d
add check tensor when graph output is a const or parameter
5 years ago
kpy
44b738e8ac
fix grad all ci bug
5 years ago
mindspore-ci-bot
314c5ad055
!5172 remove name arg from gradoperation
Merge pull request !5172 from riemann_penn/remove_name_args_from_gradoperation
5 years ago
Wei Luning
24a10225cf
change base class of ref to tensor in cpp
5 years ago
panyifeng
1a54785fe2
remove name arg from gradoperation
5 years ago
panyifeng
637e812347
remove global grad ops
5 years ago
fary86
38083e055a
Fix coredump missing return statement after while loop
5 years ago
buxue
35677ac098
support two mstypes do equal.
5 years ago
panyifeng
34e50e5d6e
fix cell bprop
5 years ago
buxue
ace34525cd
improve interface '__bool__' for tensor
5 years ago
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
5 years ago
panyifeng
598bfa0205
add sparse operators
5 years ago
buxue
b812c1a17a
support call super when class define in test_case.
5 years ago
buxue
073507a5e0
support call the parent class function
5 years ago
mindspore-ci-bot
3e691e54f5
!3071 change ValueError to TypeError for enumerate start
Merge pull request !3071 from zhangbuxue/change_ValueError_to_TypeError_for_enumerate_start
5 years ago
buxue
60b0ded440
change ValueError to TypeError for enumerate start
5 years ago
huangdongrun
ee2039fbba
add support for value sequence of primitve
5 years ago
kingfo
8863dfd677
fix context mode and device_target dependency issue
5 years ago
mindspore-ci-bot
d925c52bb1
!2875 add grad all in pynative
Merge pull request !2875 from wangqiuliang/add-grad-all-in-pynative
5 years ago
kingfo
add3778a61
add grad all in pynative mode
5 years ago
buxue
cf797d3bf2
add arg check for enumerate
5 years ago
buxue
cfa41733d6
support Python built-in function 'enumerate'
5 years ago
huangdongrun
96b38f72b2
add ExpandDims whitelist
add comment for control_depend
5 years ago
huangdongrun
9d3c9c69fe
modify map to C.Map()
5 years ago
jinyaohui
86d197dfeb
clean pylint
5 years ago
seatea
7398526abc
Fix pylint warning for test cases of optimizer, infer, parse and
pynative.
5 years ago
jinyaohui
fbdba6e4da
clean pylint
5 years ago
jinyaohui
5a914994ba
clean pylint
5 years ago
jinyaohui
bcfaff97f9
clean pylint
5 years ago
panyifeng
755ba75deb
fix pylint
5 years ago
He Wei
33fa90efc9
Support 'break', 'continue' and 'pass'
To handle 'break' and 'continue' statement, a loop context is pushed
to a stack before we parse the loop body, and pop it after body parsed.
When a 'break', 'continue' statement is encountered, we retrieve current
loop contex from the stack, and let the current block jump to the end
block or header block;
For 'break' statement, we added an extra 'end_block' follow the 'after_block',
because 'after_block' is called from a ContionalJump in 'header_block', it can
not be set as jump target from other place. to support 'break', we let loop
body jump to the 'end_block' at the 'break' point. and 'after_block'
maybe a good place to handle loop 'else' clause in the future.
Handle 'pass' is simple, just bypass it when doing parse.
5 years ago
buxue
437bb8c27c
support ellipsis and bool for tensor slice
5 years ago
buxue
7c233a57fa
support python func print and != for list with none
5 years ago
buxue
80978cf3cc
support operator ** // % for scalar and tensor, and in not in for dict, ang str concat
5 years ago
Wei Luning
73ba399364
remove ge depend in cpu
5 years ago
zhunaipan
930a1fb0a8
initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
5 years ago