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