nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SameDiff.java
public static DataBuffer.Type getDataTypeFromByte(byte val) {
        if (val == DataType.FLOAT)
            return DataBuffer.Type.FLOAT;
        else if (val == DataType.DOUBLE)
            return DataBuffer.Type.DOUBLE;
        else if (val == DataType.HALF)
            return DataBuffer.Type.HALF;

        throw new UnsupportedOperationException("Unsupported DataType: [" + val + "]");
    }
public static DataBuffer.Type getDataTypeFromByte(byte val) {
        if (val == DataType.FLOAT)
            return DataBuffer.Type.FLOAT;
        else if (val == DataType.DOUBLE)
            return DataBuffer.Type.DOUBLE;
        else if (val == DataType.HALF)
            return DataBuffer.Type.HALF;

        throw new UnsupportedOperationException("Unsupported DataType: [" + val + "]");
    }
public static DataBuffer . Type getDataTypeFromByte ( byte val ) { if ( val == DataType . FLOAT ) return DataBuffer . Type . FLOAT ; else if ( val == DataType . DOUBLE ) return DataBuffer . Type . DOUBLE ; else if ( val == DataType . HALF ) return DataBuffer . Type . HALF ; throw new UnsupportedOperationException ( "Unsupported DataType: [" + val + "]" ) ; }
This method converts enums for DataType

@param val
@return
This method converts enums for DataType