[XLA] Fix bool support for Array2D/Array3D/Array4D.
The Array?D<T> classes were previously backed by a std::vector<T>, which has an inconsistent bitset implementation for T == bool. This meant that the bool instantiations of Array?D caused compile-time errors. Change the Array classes to be backed by a std::unique_ptr<T[]> instead, since the dimensions of an Array are constant. PiperOrigin-RevId: 156364397
Loading
Please sign in to comment