Zhang Qinghua
9dffcb15db
Ignore items order in HyperMap.
5 years ago
Zhang Qinghua
2b24a7a9cf
Keep states between hyper map inner ops.
5 years ago
mindspore-ci-bot
cf5eaf8590
!13050 Don't insert UpdateState for HyperMap func graph call, move auto monad eliminator out from CSE, and eliminate auto monad nodes for output node.
From: @zh_qh
Reviewed-by:
Signed-off-by:
5 years ago
Zhang Qinghua
e853df4ecd
Don't insert UpdateState for HyperMap func graph call.
Move auto monad eliminator out from CSE.
Eliminate auto monad nodes for output node.
5 years ago
Zhang Qinghua
8d36b00426
Add defer_inline flag for on-grading primal graph.
5 years ago
yujianfeng
f0b7c3dd4d
Add a switch to control grad for scalar
5 years ago
yujianfeng
41189781f3
support scalar input for cell
5 years ago
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
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
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
Wei Luning
8c6475fd0b
add composite op doc
5 years ago
Wei Luning
879a519136
updata signature
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
buxue
02d6e3a43a
fix bugs
5 years ago
Wei Luning
ea3ddea3d4
remove ref origin
5 years ago
liubuyu
d81862a916
decoupling core and context
5 years ago
mindspore-ci-bot
a4f447af6c
!3289 Move abstract function to core abstract folder.
Merge pull request !3289 from ZhangQinghua/master
5 years ago
Zhang Qinghua
7b69565d91
Move abstract function to core abstract folder.
5 years ago
panyifeng
4d4e23fd9e
Add bprop for sparse_tensor
5 years ago
liubuyu
76dc80e7b7
Unified code style
5 years ago
panyifeng
5a10383cc3
add coo_tensor
5 years ago
liubuyu
43c79eb853
mindspore path adjust
5 years ago