Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueType #14

Open
alexis2804 opened this issue Oct 3, 2022 · 0 comments
Open

ValueType #14

alexis2804 opened this issue Oct 3, 2022 · 0 comments

Comments

@alexis2804
Copy link

Hey, i would like to change the ValueType from f32 to f64. Is there any way to do it from myself or you have to implement new stuffs ?

I saw in your code source that you defined in this way :

///! For now we only support std::$t using this macro.
/// We will generalize ValueType in future.
macro_rules! def_value_type {
    ($t: tt) => {
        pub type ValueType = $t;
        pub const VALUE_TYPE_MAX: ValueType = std::$t::MAX;
        pub const VALUE_TYPE_MIN: ValueType = std::$t::MIN;
        pub const VALUE_TYPE_UNKNOWN: ValueType = VALUE_TYPE_MIN;
    };
}

// use continous variables for decision tree
def_value_type!(f32);

Can you bind the ValueType to an f64 behind the feature flag ?

Thanks,
Alexis D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant