buxue
4d59fe9ee1
add check for mod when y in (-1, 0)
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
09f1a4bbaf
support axis is None for all and any interface in graph mode.
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
mindspore-ci-bot
5827ba9a8a
!3940 View code support interface 'all' and 'any' of tensor
...
Merge pull request !3940 from zhangbuxue/support_interface_all_and_any_of_tensor
5 years ago
buxue
2c4cb49a11
support interface 'all' and 'any' of tensor
5 years ago
mindspore-ci-bot
2da29bce66
!3370 same graph used in different context should be treat differently.
...
Merge pull request !3370 from xychow/fix-context-dup
5 years ago
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
5 years ago
zhousiyi
f926650c64
if AbstractFunction comparison succeed in NewContext, then the evaluator should use the same one, otherwise one of the evaluator will not be evaluated.
...
if funcgraph or metafuncgraph call it recursively, then anf_node should be used as tracking_id to discriminate the first occurcance and the
recursive occurance.
add anf_node to PrimitiveAbstractClosure hash() to reduce cost of GetEvaluatorFor().
ignore the tracking_id to make cse work.
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
mindspore-ci-bot
684ff4f46b
!3160 Rewrite tensor's __bool__ for pynative mode
...
Merge pull request !3160 from Simson/push-to-opensource
5 years ago
simson
5f77fbdd75
Rewrite tensor's __bool__ for pynative mode
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
mindspore-ci-bot
c465ea3269
!3031 fix context mode and device target dependency issue
...
Merge pull request !3031 from wangqiuliang/fix-tensor-bool-operation
5 years ago
kingfo
8863dfd677
fix context mode and device_target dependency issue
5 years ago
panyifeng
44e74ad5aa
Apply indexed_slices
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
zhousiyi
d5255fe311
fix assign used in while
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
buxue
66bbdb4a31
change tensor dtype and shape from function to attr
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
zhousiyi
047ac018da
specialize hypermap paramater
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