mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 02:37:01 -07:00
update xlib.avecl
This commit is contained in:
parent
7aef4d2b1e
commit
acbe4957e6
3 changed files with 16 additions and 14 deletions
|
@ -82,9 +82,9 @@ class Tensor:
|
|||
self.get_buffer().set(value)
|
||||
return self
|
||||
|
||||
def np(self):
|
||||
def np(self, out=None):
|
||||
"""Returns numpy value of a Tensor"""
|
||||
return self.get_buffer().np(self.shape, self.dtype)
|
||||
return self.get_buffer().np(self.shape, self.dtype, out=out)
|
||||
|
||||
|
||||
### OPERATORS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue