We currently do not support distribution strategy with a `Sequential` model

Traceback (most recent call last):
File "C:/Users/wx/PycharmProjects/SASRec5/train.py", line 69, in
model.compile(optimizer=Adam(learning_rate=learning_rate))
File "C:\Users\wx\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\training\tracking\base.py", line 530, in _method_wrapper
result = method(self, *args, **kwargs)
File "C:\Users\wx\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training_v1.py", line 354, in compile
self._validate_compile_param_for_distribution_strategy(self.run_eagerly,
File "C:\Users\wx\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\engine\training_v1.py", line 1396, in _validate_compile_param_for_distribution_strategy
raise ValueError(
ValueError: We currently do not support distribution strategy with a Sequential model that is created without input_shape/input_dim set in its first layer or a subclassed model.

英语?

来自百度翻译:
ValueError:我们目前不支持在第一层或子类模型中没有设置input_shape/input_dim的顺序模型的分发策略。