Determining Tensor datatype at runtime
Hi folks! I'm working on a project where I need to extract a bunch of numeric data from a file, and the datatype for the file data is contained within the metadata for the file.
I want the data within to always be read into a Tensor, but I'm not sure how to handle the datatyping at runtime, since you have to define the Tensor with a datatype at compile time. I have a feeling the answer lies in pointers, but I'm used to Python so I'm still learning about them 🙂
Grateful for any advice!
2 Replies
ah of course, thank you!