Commit Graph

75 Commits

Author SHA1 Message Date
yanglf1121 968d05afee split tensor and sparse tensor 2022-10-31 14:10:11 +08:00
yanglf1121 5269408262 deprecate rowtensor 2022-10-27 19:15:00 +08:00
huangbingjian b98fc0021a Add api mindspore.jit and mindspore.jit_class.
1、ms_function will be removed in a future version and replaced with jit.
2、ms_class will be removed in a future version and replaced with
jit_class.
2022-10-21 10:17:44 +08:00
chujinjin 3711a83f76 change default mode to pynative 2022-10-13 19:48:38 +08:00
lvyufeng 4724964e8a Revert "add value print for Parameter"
This reverts commit eff301e3e5.
2022-10-11 09:54:02 +08:00
lvyufeng eff301e3e5 add value print for Parameter 2022-09-26 12:54:13 +08:00
i-robot c1efb947ca
!42006 Add parse support for mutable api
Merge pull request !42006 from YuJianfeng/master
2022-09-20 05:46:31 +00:00
yujianfeng af60c8833f Fix the loss of const_arg attr when using ms_function 2022-09-16 14:35:38 +08:00
yujianfeng dccd938c56 Add parse support for mutable api 2022-09-15 20:29:49 +08:00
He Wei da53651629 Fix an issue in Tensor.asnumpy() 2022-09-14 12:44:40 +08:00
yujianfeng 6aed61752b Fix the bug of mixed call for mutable and set_const_arg of Tensor 2022-09-01 20:24:32 +08:00
fengyihang cbf5dc39a2 fix ut error 2022-08-31 09:07:25 +08:00
yujianfeng 06510b0649 Allow tensor to be set const for network argument 2022-08-29 21:12:03 +08:00
lianliguang 27bdd4e3b9 support load numpy array which is not c contiguous to create a tensor 2022-08-11 11:43:30 +08:00
He Wei f753bb6b34 Fix an ownership bug in Tensor.asnumpy()
Ownership should be handled correctly in Tensor.asnumpy(),
otherwise there are potential risks for 'use after free' problem.
2022-07-08 11:52:54 +08:00
He Wei 7092d5947f Support tensor lazy initializing after flatten weights 2022-06-14 19:29:57 +08:00
He Wei 2d7c4334ec Support fusion_size argument for flatten_weights 2022-05-20 17:11:48 +08:00
Zhang Qinghua d7762f1c8d Add bprop_return_sparse flag for sparse bprop primitive and remove context option: 'enable_sparse'. 2022-05-19 17:31:57 +08:00
yujianfeng d855c830d2 Change class Variable to mutable function 2022-05-16 09:05:32 +08:00
yujianfeng a4575fcf9a Add docs and ut for Variable api 2022-04-15 15:01:04 +08:00
i-robot b12fefbded
!32373 Add class Variable to set constant mutable
Merge pull request !32373 from YuJianfeng/mutable
2022-04-02 07:35:02 +00:00
yujianfeng 507c2cb2a7 Add Variable to set constant mutable 2022-04-02 11:08:43 +08:00
He Wei ba0e450078 Add APIs to support flatten weights
```
Cell.flatten_weights()

Tensor._flatten_tensors()
Tensor._is_flattened()
Tensor._get_flattened_tensors()
```
2022-04-01 15:56:38 +08:00
wangrao124 5e5415f617 fix csr/coo 2022-03-18 16:46:38 +08:00
wangrao124 9dfc703f7a change sparsetensor to cootensor 2022-01-25 15:39:37 +08:00
jiangzhenguang d895eadd7b fix softmaxcrossentropywithlogits infer 2022-01-06 20:44:11 +08:00
kingxian 545dc83fcb fix: `cell` does not support deep copy, tensor default dtype -> float32 2021-11-22 09:08:32 +08:00
zhouyaqiang 4e07873378 Tensor support complex input 2021-09-06 18:44:26 +08:00
Zhang Qinghua a137fa1d0b Optimize the Executors routines.
- Fix the key generating.
- Distinguish the executors.
2021-08-28 17:36:12 +08:00
ms_yan 36a8886ca2 Revert "[feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset"
This reverts commit b077aa1cab.

Revert "[feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset"

This reverts commit 4e6f7dc97d.

delete pass_registry_test.cc

comment  hiai_nlu_model_multi.pb related  line
2021-08-23 01:46:38 +08:00
djc 4e6f7dc97d [feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset 2021-08-22 13:39:37 +08:00
zhouyaqiang b81ba100b7 add complex number support 2021-08-12 10:36:43 +08:00
Zhang Qinghua f91c697efc Support the tensor of string dtype. 2021-07-22 19:05:37 +08:00
wangshuide2020 185ddbbe66 remove the redundant code, add docstring of operator init and add default value for args. 2021-06-17 20:29:52 +08:00
yepei6 81789ffb5d augassign 2021-04-23 11:58:07 +08:00
l00591931 923dd4b77a enable zero dimension tensor when input is data 2021-03-24 15:46:17 +08:00
l00591931 bd777e0710 throw exception when tensor has zero in shape 2021-03-16 10:39:48 +08:00
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)
```
2021-02-08 09:01:15 +08:00
l00591931 9ec100d069 Change TensorAdd to Add, from r1.1 to master 2021-02-01 17:53:52 +08:00
lilei 7d9f5f6dba modify Tensor 2021-01-21 17:46:34 +08:00
yanglf1121 72903c11c8 add array_ops, math_ops and tensor ops 2021-01-14 15:32:36 +08:00
yanglf1121 918679daa3 add tensor.ndim and rename tensor.size() to tensor.size 2020-12-18 17:15:42 +08:00
HuangBingjian 265a6d61b6 reverse fix shape=0 2020-11-09 15:06:37 +08:00
HuangBingjian 4477fcfe19 fix shape bug. 2020-11-06 12:59:03 +08:00
buxue 346bcfa3fd Rectify and optimize the type checking function 2020-11-03 13:48:43 +08:00
Jiaqi a30ccea62c sparse optimizer 2020-10-20 17:56:45 +08:00
mindspore-ci-bot c967bf6846 !7339 fix for se-resnet50 accurancy
Merge pull request !7339 from qujianwei/master
2020-10-15 19:50:16 +08:00
fary86 144a35b17e Adapt GatherV2 for dynamic shape 2020-09-01 19:24:21 +08:00
He Wei 27721ff4ea Fix Tensor.from_numpy() returns wrong type
Tensor.from_numpy() should return mindspore.Tensor not _c_expression.Tensor.
2020-08-29 19:05:44 +08:00
He Wei d7cdda1cb0 Provide Tensor.from_numpy() to avoid copy 2020-08-28 11:03:14 +08:00