Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorboard: AttributeError: 'Model' object has no attribute '_get_distribution_strategy'

I'm getting this error when i use the tensorboard callback while training.

I tried looking for answers from posts related to tensorboard errors but this exact error was not found in any stackoverflow posts or github issues.

Please let know.

The following versions are installed in my pc:

Tensorflow and Tensorflow GPU : 2.0.0

Tensorboard: 2.0.0

like image 929
envi z Avatar asked Dec 23 '19 09:12

envi z


2 Answers

I had the same problem and fixed it with this hack

model._get_distribution_strategy = lambda: None
like image 165
HansQ Avatar answered Nov 07 '22 13:11

HansQ


It seems to be a bug on tensorflow's side. https://github.com/tensorflow/tensorflow/pull/34870

Remove tensorboard callback for now.

like image 1
SandMan Avatar answered Nov 07 '22 12:11

SandMan