Join GitHub today
Added dtypes to spaces. #512
Spaces now (optionally) specify data type in addition to data geometry. The behavior of existing code is unaffected.
All Spaces used to force a cast to float whenever
There was a lot of code duplication between
For the same reason,
For CompositeSpaces, the dtype can either be simple or composite. A composite dtype is a nested tuple of dtypes. A simple dtype is interpreted as a nested tuple of dtypes where all the leaves are the same.
As in Theano, '
All existing code should behave as before. This is because all spaces have