fix power layer for cuda