Commit Graph

539 Commits

Author SHA1 Message Date
candanzg 2429da19fb implicit type conversion
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-05-27 20:04:52 +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
zhaozhenlong 6fa2813945 add op BitwiseAnd BitwiseOr BitwiseXor 2020-05-27 16:00:25 +08:00
mindspore-ci-bot ad279e90fd !1407 support mixed tensor index for tensor get item and set item and support in operator.
Merge pull request !1407 from zhangbuxue/support_mixed_tensor_for_tensor_get_item_and_tensor_set_item
2020-05-27 14:49:21 +08:00
mindspore-ci-bot 5b9c145ff8 !1383 keep different attributes for cnode evaluation
Merge pull request !1383 from amongo/KeepPrimAttrInCNode
2020-05-27 13:02:34 +08:00
buxue 7ae289a197 Support mixed tensor for tensor getitem or setitem. 2020-05-27 11:19:51 +08:00
jiangjinsheng a45dfca142 support BatchToSpaceND and SpaceToBatchND 2020-05-27 09:13:12 +08:00
huangdongrun 334d038008 add support for multi switch
resolve review
2020-05-26 21:20:29 +08:00
huangdongrun 1159f2b11e add prim infer attr cache
modify infer to get abstract value and attr value map together

support get attr in specialize

clone primitive when specialize if attribute is not the same with
infered attribute
2020-05-26 16:19:58 +08:00
zhaozhenlong 55d1927534 add op scatter add vm 2020-05-26 12:17:23 +08:00
liuwenhao4 f3f0cbaeee Fixing some tiny faults about Pylint in my code(ops) 2020-05-25 21:27:45 +08:00
mindspore-ci-bot 44bf7c9330 !1414 fix issue use reshape as flatten grad impl
Merge pull request !1414 from zhaozhenlong/fix-issues-reshape-replace-flattern-grad
2020-05-25 20:45:46 +08:00
zhaozhenlong 30b93ecbf8 use reshape as flatten grad 2020-05-25 16:57:26 +08:00
liuxiao 627724a205 Add RangeD for GE 2020-05-25 14:49:49 +08:00
ougongchang 7d78b5d89e Put the parameter validation of the Summary operator into the python layer
add some unittest for summary operator

support ScalarSummary to record number type
2020-05-22 21:23:43 +08:00
mindspore-ci-bot f3d14fa14b !1363 Restrict tensor get item or set item not support mixed tensor.
Merge pull request !1363 from zhangbuxue/Not_support_mixed_tensor_as_index_for_tensor_getitem_and_setitem
2020-05-22 18:04:31 +08:00
mindspore-ci-bot 368007240c !1320 add applyrmsprop cumprod and reduceprod for vm
Merge pull request !1320 from JichenZhao/applyrms_squaresumall_cumprod_reduceprod
2020-05-22 16:33:31 +08:00
buxue 850171a34b Restrict tensor getitem or setitem not support mixed tensor. 2020-05-22 15:55:38 +08:00
jinyaohui fbdba6e4da clean pylint 2020-05-22 13:23:13 +08:00
zhaojichen a42ec8f69f add applyrmsprop op for vm 2020-05-21 23:02:32 -04:00
mindspore-ci-bot 274f6f014f !1133 support tensor get value by tensor index
Merge pull request !1133 from zhangbuxue/support_tensor_get_value_by_tensor_index
2020-05-22 10:02:35 +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
zhouneng 218ade30b2 add vm support sin and cumsum 2020-05-21 17:26:01 +08:00
mindspore-ci-bot 2224fa093b !1302 Complete vm ops for BinaryCrossEntropy and BinaryCrossEntropyGrad
Merge pull request !1302 from lihongkang/master
2020-05-21 17:00:09 +08:00
mindspore-ci-bot b96a2ed816 !1312 support vm for erfc
Merge pull request !1312 from jiangjinsheng/vm_erfc
2020-05-21 16:59:56 +08:00
jiangjinsheng 2d3cd8276e vm for erfc 2020-05-21 10:08:23 +08:00
huangdongrun 3e2074b113 add check for ControlDepend 2020-05-20 22:48:00 +08:00
lihongkang cf543382aa add vms for binarycrossentropy and binarycrossentropygrad 2020-05-20 20:28:56 +08:00
mindspore-ci-bot 183144e135 !1282 support vm for PReLU and PReLUGrad
Merge pull request !1282 from jiangjinsheng/vm_prelu
2020-05-20 17:08:03 +08:00
jiangjinsheng ce09f5e15a vm for prelu and prelugrad 2020-05-20 11:21:56 +08:00
jiangjinsheng ba99cb7bcb support vm for space_to_depth 2020-05-20 09:47:12 +08:00
jiangjinsheng f9bd460c96 support vm for pack 2020-05-19 16:52:41 +08:00
mindspore-ci-bot 18c9495000 !1228 Adapt tbe op UnsortedSegmentMin for GE.
Merge pull request !1228 from liuxiao/UnsortedSegmentMin
2020-05-19 09:04:22 +08:00
liuxiao cc024bb3a1 UnsortedSegmentMin for GE 2020-05-18 20:49:58 +08:00
zhaojichen d1d1766bed add squaresumall op 2020-05-18 08:01:22 -04: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
mindspore-ci-bot 4efa9717bb !1129 Add op bounding box encoder
Merge pull request !1129 from zhaozhenlong/op/bounding-box-encoder
2020-05-18 09:04:59 +08:00
mindspore-ci-bot 6de7eb2633 !1203 delete ApplyAdamD for master
Merge pull request !1203 from changzherui/code516
2020-05-17 20:14:06 +08:00
changzherui 1e93927772 code 516 for test 2020-05-17 15:28:17 +08:00
mindspore-ci-bot c169ac6a18 !1195 add validate for geswitch and merge
Merge pull request !1195 from jiangjinsheng/issue_geswitch
2020-05-16 18:43:19 +08:00
jiangjinsheng c05203ef06 add validate for geswitch and merge 2020-05-16 17:49:21 +08:00
zhaozhenlong b54ffdc086 add op BoundingBoxDecode
iou

NMSWithMask

larsupdate testcase

sgd testcase
2020-05-16 02:40:16 -04:00
zhouneng c2a1b5f8c1 add register info for ROIAlign and ROIAlignGrad 2020-05-15 14:58:33 +08:00
jiangjinsheng 766906dd6d support vm for flatten 2020-05-15 10:30:58 +08:00
peixu_ren 99fda6f431 Add logsigmoid and reduce_logsumexp 2020-05-13 23:52:10 -03:00
mindspore-ci-bot 7e3ec651dc !1094 Complete vm ops for L2Normalize and L2NormalizeGrad
Merge pull request !1094 from zhouneng/add_vm_support_l2normalize
2020-05-13 21:52:45 +08:00
lihongkang ca8a914736 接入算子resizebilinear and resizebilineargrad 2020-05-13 14:27:35 +08:00
zhouneng 79725af4cd 为L2Normalize/L2NormalizeGrad增加VM支持 2020-05-12 16:46:02 +08:00
liuxiao 10abb68498 add ops CTCLoss 2020-05-12 15:58:51 +08:00
mindspore-ci-bot da7d605e85 !683 WIP: specialize hyper map parameter
Merge pull request !683 from xychow/bypass-renorm-and-specialize-hypermap-parameter
2020-05-12 15:50:00 +08:00
mindspore-ci-bot 6ab046e4dd !1062 Adapt Softplus\SoftplusGrad for VM, and ApplyFtrlD for both GE and VM.
Merge pull request !1062 from liuxiao/softplus-softplusgrad
2020-05-12 15:35:56 +08:00
jiangjinsheng c36e7f1564 support vm for log1p 2020-05-12 11:46:18 +08:00
zhousiyi 047ac018da specialize hypermap paramater 2020-05-12 01:51:57 +00:00
mindspore-ci-bot 4a8fcf5d76 !1055 support vm for floor
Merge pull request !1055 from jiangjinsheng/vm_floor
2020-05-12 09:20:16 +08:00
liuxiao 4335e9bc83 adapt Softplus\SoftplusGrad\ApplyFtrlD for VM 2020-05-11 20:45:12 +08:00
mindspore-ci-bot 5ff79d0204 !1048 Support index to switch_layer
Merge pull request !1048 from panyifeng/index_to_switch_case
2020-05-11 19:30:13 +08:00
jiangjinsheng 2fa654e65c support vm for floor 2020-05-11 16:17:20 +08:00
panyifeng 065e25e1bb Support index to switch_layer 2020-05-11 15:52:30 +08:00
mindspore-ci-bot 68372231bb !1031 Support transform valuetuple of nested graph to make tuple
Merge pull request !1031 from amongo/ValueTupleOfNestedGraph
2020-05-09 17:15:54 +08:00
huangdongrun 0e89813759 add resolve
transform valuetuple to maketuple of graphs

add testcase
2020-05-09 14:30:19 +08:00
mindspore-ci-bot affdd22de3 !967 Add switch_case primitive
Merge pull request !967 from panyifeng/switch_case_primitive
2020-05-09 14:14:25 +08:00
panyifeng b7596e1f33 Add switch_case primitive 2020-05-09 09:38:17 +08:00
mindspore-ci-bot 7c64048d76 !935 develop op ScatterMax and dock ge process
Merge pull request !935 from zhangbuxue/develop_scatter_max_op_and_dock_ge
2020-05-07 19:35:57 +08:00
mindspore-ci-bot becaf39262 !957 complete vm ops for BatchToSpace and SpaceToBatch
Merge pull request !957 from jiangjinsheng/space_to_batch
2020-05-07 19:11:32 +08:00
buxue ac86996746 develop op ScatterMax and dock ge process 2020-05-07 18:58:11 +08:00
jiangjinsheng a945299e42 update test for batch_to_space 2020-05-07 15:21:33 +08:00
jiangjinsheng 79a3f0821a add vm for batch_to_space and space_to_batch 2020-05-07 10:49:30 +08:00
liuxiao eba74ca8f7 add ops for VM 2020-05-07 10:44:51 +08:00
changzherui 446828f221 modify momentum test 2020-05-05 21:56:13 +08:00
changzherui b323199dc1 syn code 430 2020-04-30 17:55:12 +08:00
zhaozhenlong 4694c979a5 delete pack description about num and add raise error
SparseApplyAdagrad example format

PReLU and grad state 1-d not supported

atan2 bprop dx dy revert to original shapes
2020-04-30 16:05:03 +08:00
mindspore-ci-bot 0611c1a579 !849 [CT][MS] Wrong format of broadcast output, when multi-output
Merge pull request !849 from vlne-v1/I1FQ76-wrong-format-of-boardcast-output-when-multi-output
2020-04-30 14:27:36 +08:00
Wei Luning 157710ca0f bugfix* fix bug in output tuple of tuple.* check kRWWrite input no-variable* input x of ScatterNdUpdate should be a parameter node 2020-04-30 12:00:56 +08:00
mindspore-ci-bot ff1a05d6c8 !882 fix bug of bprop of FloorMod
Merge pull request !882 from zhangbuxue/fix_bprop_for_floor_mod
2020-04-30 11:44:49 +08:00
buxue 0c6cf98db0 fix bug of brpop of FloorMod 2020-04-30 11:02:02 +08:00
zhaozhenlong 66e7a36846 ImageGradients check 4d
fix DiagPart constant folding issue

fix argmin output type check

fix atan2 doc error

fix remove FusedBatchNorm and its grad
2020-04-29 21:47:33 +08:00
mindspore-ci-bot 728345fdd0 !841 fix bugs of Acosh bprop and Elu bprop
Merge pull request !841 from zhangbuxue/adapt_ExtractImagePatches_and_fix_EluGrad
2020-04-29 17:17:30 +08:00
buxue 064d370a61 fix bug of Acosh bprop and Elu bprop 2020-04-29 16:50:08 +08:00
candanzg e886a3182c tensor assign with ellpsis
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-29 11:05:44 +08:00
zhaozhenlong 243cd33203 adapt SparseApplyAdagradD adding output accum 2020-04-28 21:48:04 +08:00
buxue 0f89cc1da4 dock AcoshGrad for GE and AvgPool AvgPoolGrad for Vm 2020-04-28 18:52:23 +08:00
mindspore-ci-bot 8bf35b2b0c !700 validate bprop rules
Merge pull request !700 from penn/validate_bprop_rules
2020-04-28 10:40:41 +08:00
panyifeng 9e633b6c12 validate bprop rules 2020-04-27 11:57:22 +08:00
mindspore-ci-bot efdcd4c258 !682 fix api comments of some ops
Merge pull request !682 from liuxiao/fix-bug
2020-04-26 19:29:40 +08:00
fary86 2078229436 Add prim name to error message for array_ops 2020-04-26 15:23:04 +08:00
liuxiao 5e877a7715 modify api and add example 2020-04-26 11:07:18 +08:00
buxue aff6777ecc fix reviewboot and example of TruncatedNormal and add type mapping 2020-04-26 10:01:20 +08:00
mindspore-ci-bot 6844ea633d !56 Synchronization code423 to ms-incubator
Merge pull request !56 from changzherui/syn-code423
2020-04-24 19:30:37 +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
zhaojichen 1af894e25f change error type 2020-04-23 09:21:05 -04:00
zhaojichen 57bc30505c change error type 2020-04-23 07:58:44 -04:00
mindspore-ci-bot ad75618ca6 !611 change error message type
Merge pull request !611 from JichenZhao/errormsg
2020-04-23 19:49:59 +08:00
chang zherui bd13f9ba33 modify ResizeNearestNeighborV2D 2020-04-23 18:56:03 +08:00
zhaojichen 8963e39516 change error type 2020-04-23 05:29:26 -04:00
mindspore-ci-bot 5ac07bb695 !504 Support Tensor assign A[slice] = u
Merge pull request !504 from candanzg/tensor_assign_with_slice
2020-04-23 16:24:10 +08:00
candanzg 663d597330 tensor assign with slice index
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-23 13:07:04 +08:00
mindspore-ci-bot 0bf6717e9a !454 Fix the check of bool type in auto cast
Merge pull request !454 from candanzg/bug_cast_op
2020-04-23 10:54:40 +08:00
liuxiao b6e77e5178 Add ReluV2/ReluGradV2/ConfusionMulGrad for VM 2020-04-22 21:09:37 +08:00
mindspore-ci-bot 1a0d2666b7 !559 Add Fill/Erf op for VM.
Merge pull request !559 from liuxiao/fill-op
2020-04-22 19:22:04 +08:00
mindspore-ci-bot 24a9f4974c !536 support ellipsis and bool for tensor slice
Merge pull request !536 from zhangbuxue/support_elipis_for_tensor_slice
2020-04-22 15:49:33 +08:00
liuxiao 5b6c8fade8 Add Erf\FillD operator for VM 2020-04-22 15:32:42 +08:00
buxue 437bb8c27c support ellipsis and bool for tensor slice 2020-04-22 15:00:04 +08:00
liuxiao c874e2d484 Add L2Loss op for VM 2020-04-22 09:31:14 +08:00
mindspore-ci-bot 72f42fc37c !170 Add prim name to error message for operators in nn_ops.py
Merge pull request !170 from fary86/add_prim_name_to_error_message_for_nn_ops
2020-04-21 21:14:44 +08:00
wangnan39@huawei.com b812b18c02 support update parameter for vm 2020-04-21 20:19:46 +08:00
fary86 6dd72f654a Add prim name to error message for nn_ops.py 2020-04-21 19:25:30 +08:00
candanzg 0de05b3949 [bug] fixed bool check for cast op
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-21 09:48:34 +08:00
mindspore-ci-bot 27a88a6bc3 !456 Auto cast case for NotEqual op
Merge pull request !456 from candanzg/not_equal_auto_cast
2020-04-21 09:20:40 +08:00
mindspore-ci-bot c3ec9712e0 !403 add cell class name to error message
Merge pull request !403 from fary86/add_cell_name_to_error_message_for_nn_layer
2020-04-20 20:06:12 +08:00
mindspore-ci-bot 3ba31ec15a !419 Tensor assign with bool Tensor
Merge pull request !419 from candanzg/tensor_assign_bool_index
2020-04-20 15:00:55 +08:00
mindspore-ci-bot 3822b4837f !340 Add a HistogramSummary ops to record tensor value
Merge pull request !340 from ougongchang/master
2020-04-20 10:54: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
candanzg 79c4312e89 NotEqual op auto cast
Signed-off-by: candanzg <zhangshucheng@huawei.com>
2020-04-19 11:41:47 +08:00
ougongchang 0ed6d9178e add Histogram summary operator
clean clang format errors and cpplint errors

add some test cases for histogram summary operator
2020-04-18 09:56:45 +08:00
huangdongrun 7fae76d10d add support for calculation between float and int
format code

remove test case for fp64

add back scalar manipulation

remove save graph
2020-04-17 19:13:52 +08:00
fary86 8cbbbd950e Add cell name to error message 2020-04-17 12:58:11 +08:00
buxue 62807da0c4 Develop operator Unfold,take the ge backend,dock with tbe's ExtractImagePatches operator 2020-04-15 15:26:44 +08:00
buxue 5841fe010e Support pow's second input could be tensor and fix bug in bprop of pow 2020-04-11 16:16:58 +08:00
liuxiao 0f0f83e292 modified api name Stack -> Pack, Unstack -> Unpack 2020-04-09 19:02:59 +08:00
mindspore-ci-bot 3e36982314 !99 Develop op MaxPoolWithArgMax
Merge pull request !99 from zhangbuxue/Dock_MaxPoolWithArgMax
2020-04-08 22:40:00 +08:00
buxue 7541d3b067 Develop op MaxPoolWithArgMax 2020-04-08 20:47:49 +08:00
liuxiao 47d903ff57 Add pack and unpack 2020-04-08 16:58:53 +08:00
chang zherui 7696c21e65 fix runtest.sh for python ut 2020-04-07 13:10:33 +08:00
mindspore-ci-bot 5add5979e8 !92 add prim name to param check error message for math_ops.py
Merge pull request !92 from fary86/add-prim-name-for-param-validator
2020-04-07 10:48:10 +08:00
fary86 69ed72f10d Add primitive name to param error message for math_ops.py 2020-04-07 10:08:04 +08:00
mindspore-ci-bot a5d95e472e !106 support comparison ops for python
Merge pull request !106 from amongo/SupportPythonOperators
2020-04-03 15:52:08 +08:00
huangdongrun 461d8e3a08 add comparison ops
fix pylint

use scalar_lt primitive directly

fix review
2020-04-03 09:58:41 +08:00
mindspore-ci-bot cb323eccf0 !71 Add operator adapting in ME for FloorMod, Acosh and SparseApplyFtrlD 【CR】,并主动Acosh and FloorMod operator adapting
Merge pull request !71 from zhangzheng/sparse_acosh_floormod
2020-04-02 21:33:33 +08:00
mindspore-ci-bot 55916351ee !52 remove ge depend
Merge pull request !52 from flywind/remove-ge-depend
2020-04-02 20:59:06 +08:00
zhangz0911gm 6f1747045c Add FloorMod, Acosh in ME 2020-04-02 08:50:39 -04:00
Wei Luning 73ba399364 remove ge depend in cpu 2020-04-02 19:38:42 +08:00
zhaoting ed3c2d7229 add RMSProp optimizer 2020-04-02 09:10:58 +08:00
zhaozhenlong bed5997a14 add atan2 operator 2020-04-01 16:27:35 +08:00
zhaozhenlong cf40305bf0 add operator SpaceToBatch and BatchToSpace for ge 2020-03-31 20:21:47 +08:00
zhaozhenlong b12e6ff780 add operator diag and diag_part 2020-03-31 09:44:56 +08:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00