mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-20 21:43:22 -07:00
add xlib.avecl
This commit is contained in:
parent
932edfe875
commit
0058474da7
56 changed files with 5569 additions and 0 deletions
17
xlib/avecl/_internal/op/cast.py
Normal file
17
xlib/avecl/_internal/op/cast.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from ..Tensor import Tensor
|
||||
|
||||
from .any_wise import any_wise
|
||||
|
||||
def cast(input_t : Tensor, dtype, output_t:Tensor=None) -> Tensor:
|
||||
"""
|
||||
cast operator
|
||||
|
||||
arguments
|
||||
input_t
|
||||
|
||||
dtype
|
||||
|
||||
output_t compute result to this Tensor.
|
||||
Tensor may be with different shape, but should match total size.
|
||||
"""
|
||||
return any_wise('O=I0', input_t, dtype=dtype, output_t=output_t)
|
Loading…
Add table
Add a link
Reference in a new issue