Add the math backend to the Layer base class
Add device type independent getters to Blob