MCPcopy
hub / github.com/dmlc/dgl / float

Method float

python/dgl/frame.py:1021–1024  ·  view source on GitHub ↗

Return a new frame with all floating-point columns converted to single-precision (float32)

(self)

Source from the content-addressed store, hash-verified

1019 return self._astype_float(F.float16)
1020
1021 def float(self):
1022 """Return a new frame with all floating-point columns converted
1023 to single-precision (float32)"""
1024 return self._astype_float(F.float32)
1025
1026 def double(self):
1027 """Return a new frame with all floating-point columns converted

Callers 15

node_homophilyFunction · 0.45
edge_homophilyFunction · 0.45
linkx_homophilyFunction · 0.45
adjusted_homophilyFunction · 0.45
test_half_spmmFunction · 0.45
test_use_libxsmm_switchFunction · 0.45
test_module_signFunction · 0.45
test_diag_negFunction · 0.45
test_diag_invFunction · 0.45
test_tagconvFunction · 0.45

Calls 1

_astype_floatMethod · 0.95

Tested by 6

test_half_spmmFunction · 0.36
test_use_libxsmm_switchFunction · 0.36
test_module_signFunction · 0.36
test_diag_negFunction · 0.36
test_diag_invFunction · 0.36
test_tagconvFunction · 0.36