yepei6
acbd7eb023
add more tensor methods
4 years ago
yanglf1121
560ef0036f
Add new np interfaces
5 years ago
buxue
5ede9ffcca
improve isinstance
5 years ago
mindspore-ci-bot
b8ba05333e
!11372 [Numpy-Native] Api docstring bug fix
From: @yanglf1121
Reviewed-by:
Signed-off-by:
5 years ago
yanglf1121
eab5ecf21a
Fix bugs in np.atleastxd, np.xstack and format api docstrings
5 years ago
buxue
2ea8b9e738
add dict for isinstance
5 years ago
buxue
e8cd572bc2
add check for outermost net inputs type and support isinstance first arg an empty list
5 years ago
buxue
15593dc98f
improve isinstance function in graph mode
5 years ago
yanglf1121
72903c11c8
add array_ops, math_ops and tensor ops
5 years ago
buxue
6d395c1d3f
keep consistent in Graph mode and PyNative mode for 'isinstance'
5 years ago
yanglf1121
918679daa3
add tensor.ndim and rename tensor.size() to tensor.size
5 years ago
wangshuide2020
abf0d30537
update the doc string of some operations.
5 years ago
mindspore-ci-bot
3f82405d17
!9639 Add Numpy Native to Mindspore
From: @yanglf1121
Reviewed-by:
Signed-off-by:
5 years ago
yanglf1121
59e5afd2bb
Add mindnumpy to mindspore
5 years ago
Bairong
623b2e3f99
support abs and mean of Tensor
5 years ago
mindspore-ci-bot
a321f402c8
!8579 Add view function for tensor
From: @liangzhibo
Reviewed-by: @zh_qh,@chenfei52
Signed-off-by: @zh_qh
5 years ago
l00591931
7a192973ff
Add view function for tensor
5 years ago
mindspore-ci-bot
c11c79170e
!8554 Add expand_as function to tensor
From: @liangzhibo
Reviewed-by: @zh_qh,@chenfei52
Signed-off-by: @zh_qh
5 years ago
l00591931
ba7ee2aa13
add expand_as function
5 years ago
l00591931
6f165ee5e3
enumerate function and enumerate test case added
5 years ago
buxue
14f6c95c28
add overflow check for make_range and optimize isinstance processing
5 years ago
buxue
b9c9046b93
support function as condition of if
5 years ago
buxue
09f1a4bbaf
support axis is None for all and any interface in graph mode.
5 years ago
buxue
ace34525cd
improve interface '__bool__' for tensor
5 years ago
buxue
2c4cb49a11
support interface 'all' and 'any' of tensor
5 years ago
buxue
b075674cf2
support tensor attr shape and dtype in graph mode
5 years ago
buxue
8feb021c08
support bprop for const in pynative and develop stridedslice and isinstance.
5 years ago
mindspore-ci-bot
684ff4f46b
!3160 Rewrite tensor's __bool__ for pynative mode
Merge pull request !3160 from Simson/push-to-opensource
5 years ago
simson
5f77fbdd75
Rewrite tensor's __bool__ for pynative mode
5 years ago
buxue
073507a5e0
support call the parent class function
5 years ago
buxue
60b0ded440
change ValueError to TypeError for enumerate start
5 years ago
buxue
cf797d3bf2
add arg check for enumerate
5 years ago
buxue
cfa41733d6
support Python built-in function 'enumerate'
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
zhunaipan
930a1fb0a8
initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
6 years ago