Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ astype
Function
astype
python/dgl/backend/tensorflow/tensor.py:139–141 ·
view source on GitHub ↗
(input, ty)
Source
from the content-addressed store, hash-verified
137
138
139
def
astype(input, ty):
140
with
tf.device(input.device):
141
return
tf.cast(input, dtype=ty)
142
143
144
def
asnumpy(input):
Callers
1
floor_div
Function · 0.70
Calls
1
device
Method · 0.45
Tested by
no test coverage detected