Comparing hard and soft attention