Skip to content
Snippets Groups Projects
Commit aeb7fbb7 authored by Iryna de Albuquerque Silva's avatar Iryna de Albuquerque Silva
Browse files

Corrected conflicts of enum dtype

parent 9b481505
No related branches found
No related tags found
3 merge requests!279v0.4.0,!253v0.4.0,!211Add show_graphview funcionality.
......@@ -53,20 +53,21 @@ void init_Data(py::module& m){
e_dtype.def("__str__", [enum_names](const DataType& dtype) {
return enum_names[static_cast<int>(dtype)];
}, py::prepend());;
// TODO : extend with more values !
py::enum_<DataType>(m, "dtype")
.value("float64", DataType::Float64)
.value("float32", DataType::Float32)
.value("float16", DataType::Float16)
.value("int8", DataType::Int8)
.value("int16", DataType::Int16)
.value("int32", DataType::Int32)
.value("int64", DataType::Int64)
.value("uint8", DataType::UInt8)
.value("uint16", DataType::UInt16)
.value("uint32", DataType::UInt32)
.value("uint64", DataType::UInt64)
;
// py::enum_<DataType>(m, "dtype")
// .value("float64", DataType::Float64)
// .value("float32", DataType::Float32)
// .value("float16", DataType::Float16)
// .value("int8", DataType::Int8)
// .value("int16", DataType::Int16)
// .value("int32", DataType::Int32)
// .value("int64", DataType::Int64)
// .value("uint8", DataType::UInt8)
// .value("uint16", DataType::UInt16)
// .value("uint32", DataType::UInt32)
// .value("uint64", DataType::UInt64)
// ;
py::enum_<DataFormat>(m, "dformat")
.value("Default", DataFormat::Default)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment