AttributeError: __enter__

I was following tutorial (Know your dataset) but it returns an error. Does anyone know where is wrong?

with Timer():
    dataset[1]['instruction']

AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 with Timer():
2 dataset[1][‘instruction’]

AttributeError: enter

Thanks for reporting! You can find the fixed snippet here: Know your dataset

1 Like