Boolean as a model input #208
-
Hi all, I have a basic question regarding loading a trained model using CppFlow. So, my multi-input model should be called through: Any idea or help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @salehisaeed Perhaps the best way to get a bool tensor is to use cast: unsigned char mytensor = 0;
auto c = cppflow::tensor(mytensor);
cppflow::cast(mytensor, TF_UINT8, TF_BOOL); |
Beta Was this translation helpful? Give feedback.
-
@serizba, does it make sense to upstream the support of bool tensors with the overhead of extra copy? I can prepare PR. |
Beta Was this translation helpful? Give feedback.
Hi @salehisaeed
Perhaps the best way to get a bool tensor is to use cast: