• ndickson-nvidia's avatar
    [Feature] Added floating-point conversion functions to dgl.transforms.functional (#3890) · e0e8736f
    ndickson-nvidia authored
    * * Added half_(), float_(), and double_() functions to DGLHeteroGraph, HeteroNodeDataView, and HeteroEdgeDataView, for converting floating-point tensor data to float16, float32, or float64 precision
    
    * * Extracted out private functions for floating-point type conversion, to reduce code duplication
    
    * * Added test for floating-point data conversion functions, half_(), float_(), and double_()
    
    * * Moved half_(), float_(), and double_() functions from HeteroNodeDataView and HeteroEdgeDataView to Frame class
    
    * * Updated test_float_cast() to use dgl.heterograph instead of dgl.graph
    
    * Added to CONTRIBUTORS.md
    
    * * Changed data type conversion to be deferred until the data is accessed, to avoid redundant conversions of data that isn't used.
    
    * * Addressed issues flagged by linter
    
    * * Worked around a bug in the old version of mxnet that's currently used for DGL testing
    
    * * Only defer Column data type co...
    e0e8736f
frame.py 29.4 KB