Skip to content

Dealing with type conversion and relayout for NPU backends (how to know the data type during buffer creation/rw)? #8111

Answered by slaren
marty1885 asked this question in Q&A
Discussion options

You must be logged in to vote

set_tensor does tell you the data type in tensor->type. Similarly, you can use get_alloc_size to determine how much memory needs to be allocated for a tensor.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@slaren
Comment options

@marty1885
Comment options

@slaren
Comment options

@marty1885
Comment options

@slaren
Comment options

Answer selected by marty1885
Comment options

You must be logged in to vote
2 replies
@marty1885
Comment options

@Cikaros
Comment options

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