MCPcopy
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
139def astype(input, ty):
140 with tf.device(input.device):
141 return tf.cast(input, dtype=ty)
142
143
144def asnumpy(input):

Callers 1

floor_divFunction · 0.70

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected