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
5 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
5 years ago
kingfo
9785178b88
add tensor compare & len & constexpr operation
5 years ago
BowenK
96379faa3a
Remove ZerosLikeTensor and sub with ZerosLike
5 years ago
buxue
e490618db8
support tensor get value by tensor index
support tensor set value by tensor index
5 years ago
panyifeng
b7596e1f33
Add switch_case primitive
5 years ago
mindspore-ci-bot
8bf35b2b0c
!700 validate bprop rules
Merge pull request !700 from penn/validate_bprop_rules
5 years ago
kpy
e64c755ad6
change tensor equal bug
5 years ago
panyifeng
9e633b6c12
validate bprop rules
5 years ago
candanzg
663d597330
tensor assign with slice index
Signed-off-by: candanzg <zhangshucheng@huawei.com>
5 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
buxue
80978cf3cc
support operator ** // % for scalar and tensor, and in not in for dict, ang str concat
6 years ago
mindspore-ci-bot
a5d95e472e
!106 support comparison ops for python
Merge pull request !106 from amongo/SupportPythonOperators
6 years ago
huangdongrun
461d8e3a08
add comparison ops
fix pylint
use scalar_lt primitive directly
fix review
6 years ago
Wei Luning
73ba399364
remove ge depend in cpu
6 years ago
zhunaipan
930a1fb0a8
initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
6 years ago