Inferring data shapes with single dimension for keras
adapter
#265
Labels
internal improvement
This is an improvement that does not add new functionality
Milestone
Description
When having
numpy
arrays of single dimension, for examplethe
keras
adapter fails due to the_augment_hyperparameters
function where we try to infer the shapes of the input and target variables. More specifically, the following lines can be editedrather than assuming the data is at least contains two dimensions, i.e.
shape = (m, n, ..)
we can consume a shape of any size and cast it as uni-dimensional if we infer an empty tuple, more concretely the edited function would look likeThis issue was initially discovered in sintel-dev/Draco#59
The text was updated successfully, but these errors were encountered: