i-robot
e57633ec7f
!30027 Fix tensor with dynamic shape problem
...
Merge pull request !30027 from hewei/fix_core
2022-02-15 06:26:51 +00:00
He Wei
36ab9c3d4b
Fix tensor with dynamic shape problem
...
Set data size to zero for tensor with dynamic shape,
prevent unexpected memory allocation for tensor data.
2022-02-15 09:11:36 +08:00
He Wei
656b89a4da
Add MakeValue related functions in MindAPI
...
1. NewValueNode() by PrimitivePtr;
2. MakeValue() by vector<bool>.
2022-02-14 15:08:43 +08:00
He Wei
93328bc707
Fix a logging api bug in MindAPI
2022-02-11 08:42:04 +08:00
He Wei
21a9a0a73a
Add more required apis in MindAPI
...
1. AbstractBase::set_shape();
2. Move shape() from AbstractTensor to AbstractBase;
3. AbstractSequence construct from AbstractBasePtrList;
4. Shape construct from ShapeVector.
2022-02-10 11:19:01 +08:00
He Wei
0442c50bb0
Add UInt8Imm to MindAPI
2022-01-11 16:08:32 +08:00
He Wei
f35554d0c6
Add more to MindAPI
...
1. `TensorType` and `TensorTypePtr`;
2. `utils::isa<TensorTypePtr>()`;
3. `utils::isa<int64_t>()`, `utils::cast<int64_t>()`;
4. `GetValue<ValuePtrList>(value)`.
2021-12-09 08:59:25 +08:00
He Wei
5e092985e4
Fix MindAPI unit-test random failure
...
Remove improper assert line: `ASSERT_TRUE(p < q);`
2021-12-06 09:50:24 +08:00
tronzhang
9d3c0499a5
upgrade ascend 1201
2021-12-03 19:43:51 +08:00
He Wei
d2bb6303b7
Provide new mindspore core API classes
...
1. namespace is mindspore::api;
2. API header files located in mindspore/core/mindapi;
3. We use pimpl pattern to provide a wrapper layer for api;
4. Check mindapi_test.cc for usage examples.
2021-12-03 11:03:22 +08:00