Skip to content
Discussion options

You must be logged in to vote

This feature is not as fully flexible as the predict() call where you can pass live numpy objects. There are constraints, mainly that the number of samples (the first dimension of your inputs) must be the same. For example, let's say you work with tensors x of shape (batch, 10,2) and y of shape (batch,5,3), this batch dimension must be the same. Let's say that's 100 (batch=100). Then you would pass an array of (100, 10*2 + 5*3) as a .dat file where each line corresponds to a flattened sample, so there's 100 lines each with 35 values separated by a space. Same for output predictions. You can write a script that can produce such files. Unless there are bugs, this should work.

Also note that…

Replies: 1 comment

Comment options

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