Commit Graph

8 Commits

Author SHA1 Message Date
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
Zhang Qinghua a137fa1d0b Optimize the Executors routines.
- Fix the key generating.
- Distinguish the executors.
2021-08-28 17:36:12 +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
buxue 66bbdb4a31 change tensor dtype and shape from function to attr 2020-06-12 19:03:23 +08:00
jinyaohui 26fd75895d pylint waring clean 2020-05-13 11:30:27 +08:00
zhunaipan 930a1fb0a8 initial version
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>
2020-03-27 22:54:54 +08:00