tfmicro icon indicating copy to clipboard operation
tfmicro copied to clipboard

expose impl ElemTypeOf for NotNan

Open jacobrosenthal opened this issue 5 years ago • 0 comments

Amazing work.

I ran into the same Ord on float problem with a similar solution to yours

        let index = output_tensor
            .as_data::<NotNan<f32>>()
            .iter()
            .position_max()
            .unwrap();

But it doesnt look like you expose your impl ElemTypeOf for NotNan. Can we pub something to expose that?

Thanks!

jacobrosenthal avatar Jul 18 '20 19:07 jacobrosenthal