Skip to content

Boolean as a model input #208

Answered by serizba
salehisaeed asked this question in Q&A
Jul 29, 2022 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

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);

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@serizba
Comment options

@salehisaeed
Comment options

@salehisaeed
Comment options

@serizba
Comment options

@salehisaeed
Comment options

Answer selected by salehisaeed
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants