[Chap 16] TypeError: '_NestedVariant' object is not subscriptable
- 主要語言
- Jupyter Notebook
- 星號
- 30k
- 分支
- 13.1k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
In chapter 16 notebook running this cell:
```
batch_size = 32
dataset = dataset.shuffle(10000).batch(batch_size)
dataset = dataset.map(lambda windows: (windows[:, :-1], windows[:, 1:]))
```
produces this error in Colab:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
6 batch_size = 32
7 dataset = dataset.shuffle(10000).batch(batch_size)
----> 8 dataset = dataset.map(lambda windows: (windows[:, :-1], windows[:, 1:]))
10 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py in wrapper(*args, **kwargs)
256 except Exception as e: # pylint:disable=broad-except
257 if hasattr(e, 'ag_error_metadata'):
--> 258 raise e.ag_error_metadata.to_exception(e)
259 else:
260 raise
TypeError: in user code:
:8 None *
dataset = dataset.map(lambda windows: (windows[:, :-1], windows[:, 1:]))
TypeError: '_NestedVariant' object is not subscriptable
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。