He Wei
7d9a783993
[auto-monad] Support side-effects by auto-monad
The basic idea is: exploits data dependency to control the execution order
of side-effect operations, and keep the semantics of ANF unchanged.
The ControlDepend primitive is removed and there are two primitives added:
1. UpdateState:
```
a = Assign(para, value)
```
became:
```
a = Assign(para, value, u)
u = UpdateState(u, a)
```
2. Load:
```
x = Add(para, value)
```
became:
```
p = Load(para, u)
x = Add(p, value)
u = UpdateState(u, p)
```
5 years ago
buxue
899d6114a4
improve grad of first input
5 years ago
Zhang Qinghua
c621a48533
Refactor grad operation implementation.
5 years ago
mindspore-ci-bot
b189f177bb
Change tuple_getitem to TupleGetItem and some other ops, merge from r1.1 to master
5 years ago
buxue
e8cd572bc2
add check for outermost net inputs type and support isinstance first arg an empty list
5 years ago
buxue
acec35d4d4
support non tensor inputs
5 years ago
huanghui
bda74495f3
Add trace mangager around front opt
5 years ago
buxue
ecf0ec46fa
adapt implicit conversion to the change that python int resolved as int64 instead of int32
5 years ago
Yi Huaijie
d7faa77b5e
support int64 shape
5 years ago
buxue
d145bd62f5
improve the implicit conversion rule when there are float Number and other type Number
5 years ago
buxue
e3ea96ecd0
improve the implicit conversion rule when there are int tensor and float number
5 years ago
mindspore-ci-bot
8346da267b
!6400 add overflow check for make_range and optimize isinstance processing
Merge pull request !6400 from zhangbuxue/add_overflow_check_for_make_range_and_optimize_isinstance_processing
5 years ago
buxue
14f6c95c28
add overflow check for make_range and optimize isinstance processing
5 years ago
BowenK
607ea81c7b
fix static check
5 years ago
buxue
458498900c
support not in and add check for grad_with_sens with no sense provide.
5 years ago
Wei Luning
7b6899fdc0
add import of ops in in ops __init__
5 years ago
mindspore-ci-bot
c7ff3bd7ed
!5985 fix parallel optimizer problem, assign is removed unexpectly
Merge pull request !5985 from gziyan/fix_parallel_optimizer
5 years ago
Ziyan
644b680df3
fix parallel optimizer bug and add st testcase
5 years ago
Wei Luning
8c6475fd0b
add composite op doc
5 years ago
mindspore-ci-bot
290979853e
!5663 add check for mod when y in (-1, 0)
Merge pull request !5663 from zhangbuxue/add_check_for_mod_for_y
5 years ago
buxue
4d59fe9ee1
add check for mod when y in (-1, 0)
5 years ago
Wei Luning
879a519136
updata signature
5 years ago
zhousiyi
c25e37e7bf
make backend/optimizer pybind free
5 years ago
Wei Luning
24a10225cf
change base class of ref to tensor in cpp
5 years ago
panyifeng
abab21ed57
add func type check for switch layer
5 years ago
mindspore-ci-bot
b2a5440548
!4883 Fix compilation warnings
Merge pull request !4883 from zhoufeng/xiu-ba-ge
5 years ago
zhoufeng
22ec976ef7
fix compilation warnings
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
5 years ago
zhousiyi
d0e58dd765
remove ccsrc/common.h
replace frontend/operator/ops.h in backend with base/core_ops.h as
backend should not use any frontend-only primitive
5 years ago
buxue
855d6b8fed
add check for user define bprop in Pynative mode.
5 years ago
zhoufeng
663278112f
optimize code compile performance
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
5 years ago
wuyongkang
78611b5d5b
fix static check problems
5 years ago
mindspore-ci-bot
265064733b
!4340 move cc file that end with py to pybind
Merge pull request !4340 from liubuyu/master
5 years ago
liubuyu
45b6600001
mv cc file that end with py to pybind
5 years ago
buxue
35677ac098
support two mstypes do equal.
5 years ago
WilliamLian
1f5441d73a
remove inferfunction to core
5 years ago
mindspore-ci-bot
fdaa08dc05
!4185 re-arrange the primitive between core_ops.h and frontend/operator/ops.h
Merge pull request !4185 from xychow/move-core-ops
5 years ago
buxue
02d6e3a43a
fix bugs
5 years ago
zhousiyi
27223aae94
re-arrange primitives to core_ops and ops
5 years ago
Wei Luning
ea3ddea3d4
remove ref origin
5 years ago
panyifeng
34e50e5d6e
fix cell bprop
5 years ago
fary86
8ac5672abb
Add support for dynamic shape
5 years ago
panyifeng
9927e6eb5c
eager mode sparse
5 years ago
liubuyu
d81862a916
decoupling core and context
5 years ago
Yi Huaijie
518cb80133
change type of Shape from int32 to int64
5 years ago
suteng
19e45ccdb1
回退 'Pull Request !3103 : change type of Shape from int32 to int64'
5 years ago
mindspore-ci-bot
657b547116
!3103 change type of Shape from int32 to int64
Merge pull request !3103 from yihuaijie/dev
5 years ago
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
5 years ago
Yi Huaijie
15d5cc396d
change type of Shape from int32 to int64
5 years ago
simson
b2cdd5d848
Fix the difference of Error type between graph&pynative mode
5 years ago
mindspore-ci-bot
568da0d510
!3425 fix avgpoolgrad
Merge pull request !3425 from fangzehua/avgpool
5 years ago