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
mindspore-ci-bot
fd18382853
!11759 [Numpy-Native] Add new numpy-native interfaces and graph support of some ops to mindspore.numpy
From: @yanglf1121
Reviewed-by: @liangchenghui
Signed-off-by:
5 years ago
jinyaohui
8022f9a6ed
modify pack to stack
5 years ago
yanglf1121
c5ea8223f5
Add new np interfaces and add graph support
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
mindspore-ci-bot
e897eb4c41
!11915 Change TensorAdd to Add, merge from r1.1 to master
From: @liangzhibo
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @zh_qh
5 years ago
buxue
25a4382921
rectify control_depend and deprecated
5 years ago
l00591931
9ec100d069
Change TensorAdd to Add, from r1.1 to master
5 years ago
mindspore-ci-bot
066ebe516e
!11794 remove useless code of dot
From: @yuan_shen_zhou
Reviewed-by: @liangchenghui
Signed-off-by: @liangchenghui
5 years ago
zhouyuanshen
d1e6878011
remove dot
5 years ago
mindspore-ci-bot
9fa0499fa0
Change GatherV2 to Gather r1.1 to master
5 years ago
yanglf1121
72903c11c8
add array_ops, math_ops and tensor ops
5 years ago
Bairong
8cf43e59e0
hide arange, delete related test case and improve the doc string of nn.Range
5 years ago
Bairong
2eeaec7512
support arange in functional.py
5 years ago
Bairong
623b2e3f99
support abs and mean of Tensor
5 years ago
l00591931
ee45c04775
Add pynative view and expand_as
5 years ago
liuxiao93
1ad876cec8
Remove Primitive from functional.__all__.
5 years ago
Yi Huaijie
6066b16838
implement parallel Pack
5 years ago
buxue
c3c06514d7
perfect annotation of ops and context and support bool equal
5 years ago
Wei Luning
879a519136
updata signature
5 years ago
buxue
6af286b3e5
fix bug the const input is broadened in PyNative mode
5 years ago
shibeiji
40fc11e9a4
Mimic higher batch size by accumulating gradients N times before weight update
5 years ago
kpy
4fa89408a1
pynative add identity primitive and add comment for set_grad
5 years ago
panyifeng
34e50e5d6e
fix cell bprop
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
kpy
a09565389c
optimize infer in pynative mode
5 years ago
kingfo
fab9fac109
fix batchnorm under mix precision in pynative mode
5 years ago
simson
5f77fbdd75
Rewrite tensor's __bool__ for pynative mode
5 years ago
panyifeng
5a10383cc3
add coo_tensor
5 years ago
panyifeng
44e74ad5aa
Apply indexed_slices
5 years ago
kingfo
add3778a61
add grad all in pynative mode
5 years ago
panyifeng
d6635bbbe2
Add IndexedSlices
5 years ago
kingfo
078738adc5
add tensor mod & floordiv operation
5 years ago
kingfo
358982a98f
fix hook and bprop debug issue
5 years ago
kingfo
38436f929f
move hook function to primtivePy class
5 years ago
huangdongrun
beacc26077
* add isconstant primitive
* add infer_value for common math ops
* convert constant bool tensor to bool value
* do not infer value when encounter 0 as division
for while condition, do not unrool if condition is a tensor
6 years ago
mindspore-ci-bot
2a2dd7d340
!1803 Optimized MixedPrecisionCast function
Merge pull request !1803 from Kang/master
5 years ago
Kang
041f628cce
Optimize MixedPrecisionCast function
6 years ago
kingfo
9785178b88
add tensor compare & len & constexpr operation
6 years ago
BowenK
96379faa3a
Remove ZerosLikeTensor and sub with ZerosLike
6 years ago
buxue
e490618db8
support tensor get value by tensor index
support tensor set value by tensor index
6 years ago
panyifeng
b7596e1f33
Add switch_case primitive
6 years ago
mindspore-ci-bot
8bf35b2b0c
!700 validate bprop rules
Merge pull request !700 from penn/validate_bprop_rules
6 years ago
kpy
e64c755ad6
change tensor equal bug
6 years ago
panyifeng
9e633b6c12
validate bprop rules
6 years ago
candanzg
663d597330
tensor assign with slice index
Signed-off-by: candanzg <zhangshucheng@huawei.com>
6 years ago
buxue
437bb8c27c
support ellipsis and bool for tensor slice
6 years ago
buxue
7c233a57fa
support python func print and != for list with none
6 years ago
candanzg
3f087dba1a
Tensor assign syntax:
1) A[B]=U
2) A[A>n]=U
A.shape == B.shape
U is a scalar or Tensor(size==1)
B is Tensor(dtype=bool)
n is a Number
Signed-off-by: candanzg <zhangshucheng@huawei.com>
6 years ago