l00591931
923dd4b77a
enable zero dimension tensor when input is data
4 years ago
l00591931
bd777e0710
throw exception when tensor has zero in shape
4 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)
```
4 years ago
l00591931
9ec100d069
Change TensorAdd to Add, from r1.1 to master
4 years ago
lilei
7d9f5f6dba
modify Tensor
4 years ago
yanglf1121
72903c11c8
add array_ops, math_ops and tensor ops
4 years ago
yanglf1121
918679daa3
add tensor.ndim and rename tensor.size() to tensor.size
4 years ago
HuangBingjian
265a6d61b6
reverse fix shape=0
4 years ago
HuangBingjian
4477fcfe19
fix shape bug.
4 years ago
buxue
346bcfa3fd
Rectify and optimize the type checking function
4 years ago
Jiaqi
a30ccea62c
sparse optimizer
4 years ago
mindspore-ci-bot
c967bf6846
!7339 fix for se-resnet50 accurancy
...
Merge pull request !7339 from qujianwei/master
4 years ago
fary86
144a35b17e
Adapt GatherV2 for dynamic shape
5 years ago
He Wei
27721ff4ea
Fix Tensor.from_numpy() returns wrong type
...
Tensor.from_numpy() should return mindspore.Tensor not _c_expression.Tensor.
5 years ago
He Wei
d7cdda1cb0
Provide Tensor.from_numpy() to avoid copy
5 years ago
panyifeng
1a54785fe2
remove name arg from gradoperation
5 years ago
yao_yf
e4de26d5bc
embeddinglookup wrap
5 years ago
panyifeng
34e50e5d6e
fix cell bprop
5 years ago
kingfo
577535b387
fix gradients issue in pynative
5 years ago
Wei Luning
a05c38bb63
make python Parameter inherit from Tensor
5 years ago
panyifeng
598bfa0205
add sparse operators
5 years ago
panyifeng
8a89f003eb
fix sparse related issues
5 years ago
panyifeng
4d4e23fd9e
Add bprop for sparse_tensor
5 years ago
panyifeng
5a10383cc3
add coo_tensor
5 years ago
fary86
595767b4b5
Fix bug of mindspore dtype equal
5 years ago
panyifeng
44e74ad5aa
Apply indexed_slices
5 years ago
He Wei
a0623e1528
Fix bool type tensor problem
...
Problem: Create 'uint8' type tensor from float data raise RuntimeError;
Fix: Use same internal data type for 'uint8' and 'bool' tensor and allows
convert float data to bool tensor.
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
buxue
66bbdb4a31
change tensor dtype and shape from function to attr
5 years ago
jinyaohui
86d197dfeb
clean pylint
5 years ago
“liuxiao”
73a287e5e0
pylint clean
5 years ago
“liuxiao”
18f0af0529
pylint clean
5 years ago
jinyaohui
5a914994ba
clean pylint
5 years ago
candanzg
2cc85bdc93
Support weight compile according to shape
...
Signed-off-by: candanzg <zhangshucheng@huawei.com>
5 years ago
jinyaohui
26fd75895d
pylint waring clean
5 years ago
kingfo
75fec82b52
resolve pynative operator issue
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