zkmkarlsruhe / ofxTensorFlow2

TensorFlow 2 AI/ML library wrapper for openFrameworks
Other
109 stars 16 forks source link

example_keyword_spotting compile error on macOS #5

Closed stephanschulz closed 3 years ago

stephanschulz commented 3 years ago

I am on macOS 10.15.7 with OF 0.11.0 and Xcode 12.4 I successfully compiled and ran all provided examples except example_keyword_spotting Not sure why or how to fix it. I don't have an immediate need for it but thought you might like to know.

/Applications/of_v0.11.0_osx_release/addons/ofxTensorFlow2/src/ofxTensorFlow2Utils.h:119:14: Non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'long long' in initializer list

Screen Shot 2021-02-19 at 11 09 39 AM

Thanks, Stephan.

bytosaur commented 3 years ago

sorry for late response... i am pretty sure that cast should not be (size_t) but (shape_t). Could you please validate it for me?

danomatika commented 3 years ago

@bytosaur If that works, we should probably put out a 1.0.1 bug fix release and include a change log. I will add one soon.

stephanschulz commented 3 years ago

yes that changed worked.

//  shape_ = {(size_t) srcVector.size()};
        shape_ = {(shape_t) srcVector.size()};
danomatika commented 3 years ago

This is now fixed and there is a new version tag: 1.0.1