Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ to_32bit
Function
to_32bit
tensorflow/compiler/tests/fft_test.py:45–50 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
43
44
45
def
to_32bit(x):
46
if
x.dtype == np.complex128:
47
return
x.astype(np.complex64)
48
if
x.dtype == np.float64:
49
return
x.astype(np.float32)
50
return
x
51
52
53
POWS_OF_2 = 2**np.arange(3, 12)
Callers
1
_VerifyFftMethod
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected