Commit Graph

17 Commits

Author SHA1 Message Date
buxue 61857b69ed add check for tensor slice before convert to ops 2020-06-17 15:32:41 +08:00
huangdongrun 9522f59b87 support for tensor indexing in pynative
support tensor slice using constexpr

remove tensorslice metagraph

add pynative testcases
2020-06-11 19:14:22 +08:00
buxue d226a23b65 support tensor set item the number value type is similar as tensor dtype not same 2020-05-27 18:08:10 +08:00
buxue 7ae289a197 Support mixed tensor for tensor getitem or setitem. 2020-05-27 11:19:51 +08:00
buxue 850171a34b Restrict tensor getitem or setitem not support mixed tensor. 2020-05-22 15:55:38 +08:00
buxue e490618db8 support tensor get value by tensor index
support tensor set value by tensor index
2020-05-21 21:05:35 +08:00
jinyaohui 5a914994ba clean pylint 2020-05-18 16:42:35 +08:00
jinyaohui bcfaff97f9 clean pylint 2020-05-18 10:31:46 +08:00
candanzg e886a3182c tensor assign with ellpsis
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-29 11:05:44 +08:00
fary86 2078229436 Add prim name to error message for array_ops 2020-04-26 15:23:04 +08:00
mindspore-ci-bot a02eb240e9 !595 Tensor assign with int or tuple(int) index
Merge pull request !595 from candanzg/tensor_assign_with_integer
2020-04-24 17:35:58 +08:00
candanzg 31aae36106 Tensor assign with integer
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-24 16:28:23 +08:00
buxue c8a1a24ce3 fix the infer of TruncatedNormal and a bug of structure output and a bug of tensorslice ellipsis 2020-04-24 15:42:58 +08:00
candanzg 663d597330 tensor assign with slice index
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-23 13:07:04 +08:00
buxue 437bb8c27c support ellipsis and bool for tensor slice 2020-04-22 15:00:04 +08:00
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>
2020-04-20 08:44:34 +08:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00