l00591931
7a192973ff
Add view function for tensor
2020-11-16 10:49:19 +08:00
mindspore-ci-bot
c11c79170e
!8554 Add expand_as function to tensor
...
From: @liangzhibo
Reviewed-by: @zh_qh,@chenfei52
Signed-off-by: @zh_qh
2020-11-13 15:19:01 +08:00
l00591931
ba7ee2aa13
add expand_as function
2020-11-13 11:42:54 +08:00
mindspore-ci-bot
f16509388c
!8409 Multi-dimensional list value assignment
...
From: @liangzhibo
Reviewed-by: @chenfei52
Signed-off-by:
2020-11-12 14:36:20 +08:00
l00591931
c5b5a6719c
Enable multi-dimensional list value assignment
2020-11-11 09:25:12 +08:00
mindspore-ci-bot
b3855530e3
!7838 Enumerate function enable tensor as input
...
Merge pull request !7838 from LiangZhibo/master
2020-11-05 11:33:02 +08:00
l00591931
6f165ee5e3
enumerate function and enumerate test case added
2020-11-02 21:11:52 +08:00
simson
3b21822824
get keys and values from dictionary & set tuple to dictionary
2020-10-29 18:06:06 +08:00
yujianfeng
18a76ff3c5
Check whether the network args are tensors in the compile phase
2020-10-19 11:46:10 +08:00
buxue
559c741cce
improve the way passing ags of partial
2020-10-12 09:40:20 +08:00
Zhang Qinghua
6c72d88ba1
Set top graph parameters' name as original graph parameters.
2020-09-21 17:44:02 +08:00
buxue
14f6c95c28
add overflow check for make_range and optimize isinstance processing
2020-09-17 19:47:10 +08:00
buxue
458498900c
support not in and add check for grad_with_sens with no sense provide.
2020-09-16 17:28:17 +08:00
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
2020-09-12 16:57:15 +08:00
Wei Luning
7b6899fdc0
add import of ops in in ops __init__
2020-09-12 15:29:43 +08:00
buxue
b9c9046b93
support function as condition of if
2020-09-11 17:43:07 +08:00
buxue
4d59fe9ee1
add check for mod when y in (-1, 0)
2020-09-02 18:10:00 +08:00
buxue
4168c51f0d
add check tensor when graph output is a const or parameter
2020-08-31 17:17:24 +08:00
kpy
44b738e8ac
fix grad all ci bug
2020-08-26 18:28:35 +08:00
mindspore-ci-bot
314c5ad055
!5172 remove name arg from gradoperation
...
Merge pull request !5172 from riemann_penn/remove_name_args_from_gradoperation
2020-08-26 16:55:57 +08:00
Wei Luning
24a10225cf
change base class of ref to tensor in cpp
2020-08-26 12:41:25 +08:00
panyifeng
1a54785fe2
remove name arg from gradoperation
2020-08-26 11:16:57 +08:00
panyifeng
637e812347
remove global grad ops
2020-08-24 16:50:09 +08:00
fary86
38083e055a
Fix coredump missing return statement after while loop
2020-08-18 14:16:21 +08:00
buxue
09f1a4bbaf
support axis is None for all and any interface in graph mode.
2020-08-17 17:53:02 +08:00
buxue
35677ac098
support two mstypes do equal.
2020-08-12 09:12:46 +08:00
panyifeng
34e50e5d6e
fix cell bprop
2020-08-07 10:57:01 +08:00
buxue
ace34525cd
improve interface '__bool__' for tensor
2020-08-05 16:14:14 +08:00
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
2020-08-04 20:08:44 +08:00
buxue
2c4cb49a11
support interface 'all' and 'any' of tensor
2020-08-04 18:24:56 +08:00
mindspore-ci-bot
2da29bce66
!3370 same graph used in different context should be treat differently.
...
Merge pull request !3370 from xychow/fix-context-dup
2020-08-04 10:56:04 +08:00
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
2020-08-03 17:09:31 +08:00
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.
2020-08-03 07:57:07 +00:00
panyifeng
598bfa0205
add sparse operators
2020-07-30 17:18:23 +08:00
buxue
b812c1a17a
support call super when class define in test_case.
2020-07-23 18:30:30 +08:00
mindspore-ci-bot
684ff4f46b
!3160 Rewrite tensor's __bool__ for pynative mode
...
Merge pull request !3160 from Simson/push-to-opensource
2020-07-23 16:55:49 +08:00
simson
5f77fbdd75
Rewrite tensor's __bool__ for pynative mode
2020-07-23 16:51:46 +08:00
buxue
073507a5e0
support call the parent class function
2020-07-21 16:38:11 +08:00
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
2020-07-15 15:42:22 +08:00
buxue
60b0ded440
change ValueError to TypeError for enumerate start
2020-07-15 10:39:03 +08:00
huangdongrun
ee2039fbba
add support for value sequence of primitve
2020-07-15 09:24:39 +08:00
mindspore-ci-bot
c465ea3269
!3031 fix context mode and device target dependency issue
...
Merge pull request !3031 from wangqiuliang/fix-tensor-bool-operation
2020-07-13 19:52:32 +08:00
kingfo
8863dfd677
fix context mode and device_target dependency issue
2020-07-13 16:06:00 +08:00
panyifeng
44e74ad5aa
Apply indexed_slices
2020-07-13 15:36:25 +08:00
mindspore-ci-bot
d925c52bb1
!2875 add grad all in pynative
...
Merge pull request !2875 from wangqiuliang/add-grad-all-in-pynative
2020-07-13 09:30:52 +08:00
kingfo
add3778a61
add grad all in pynative mode
2020-07-10 17:49:54 +08:00
buxue
cf797d3bf2
add arg check for enumerate
2020-07-10 16:58:38 +08:00
buxue
cfa41733d6
support Python built-in function 'enumerate'
2020-07-03 14:42:10 +08:00
zhousiyi
d5255fe311
fix assign used in while
2020-06-30 08:22:27 +00:00
huangdongrun
96b38f72b2
add ExpandDims whitelist
...
add comment for control_depend
2020-06-28 11:29:16 +08:00
huangdongrun
9d3c9c69fe
modify map to C.Map()
2020-06-24 15:07:33 +08:00
buxue
66bbdb4a31
change tensor dtype and shape from function to attr
2020-06-12 19:03:23 +08:00
jinyaohui
86d197dfeb
clean pylint
2020-05-29 23:00:00 +08:00
seatea
7398526abc
Fix pylint warning for test cases of optimizer, infer, parse and
...
pynative.
2020-05-28 11:35:33 +08:00
jinyaohui
fbdba6e4da
clean pylint
2020-05-22 13:23:13 +08:00
jinyaohui
5a914994ba
clean pylint
2020-05-18 16:42:35 +08:00
jinyaohui
bcfaff97f9
clean pylint
2020-05-18 10:31:46 +08:00
panyifeng
755ba75deb
fix pylint
2020-05-14 14:22:52 +08:00
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.
2020-05-13 12:53:07 +08:00
zhousiyi
047ac018da
specialize hypermap paramater
2020-05-12 01:51:57 +00:00
buxue
437bb8c27c
support ellipsis and bool for tensor slice
2020-04-22 15:00:04 +08:00
buxue
7c233a57fa
support python func print and != for list with none
2020-04-20 19:55:50 +08:00
buxue
80978cf3cc
support operator ** // % for scalar and tensor, and in not in for dict, ang str concat
2020-04-16 17:03:31 +08:00
Wei Luning
73ba399364
remove ge depend in cpu
2020-04-02 19:38:42 +08:00
zhunaipan
930a1fb0a8
initial version
...
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00