get_workspace_size

For a given set of labels and minibatch size return the required workspace size. This will need to be allocated in the same memory space as your probabilities. \param in label_lengths Always in CPU memory. The length of each label for each example in the minibatch. \param in input_lengths Always in CPU memory. The number of time steps for each sequence in the minibatch. \param in alphabet_size How many symbols in the alphabet or, equivalently, the number of probabilities at each time step \param in mini_batch How many examples in a minibatch. \param in info see struct ctcOptions \param out size_bytes is pointer to a scalar where the memory requirement in bytes will be placed. This memory should be allocated at the same place, CPU or GPU, that the probs are in

\return Status information

extern (C)
get_workspace_size
(
const(int)* label_lengths
,
const(int)* input_lengths
,,,,
size_t* size_bytes
)

Meta