2023-05-10 09:48:36 +00:00
|
|
|
# ensure users can still use a non-torch freqai version
|
|
|
|
try:
|
2023-05-12 07:56:44 +00:00
|
|
|
from freqtrade.freqai.tensorboard.tensorboard import TensorBoardCallback, TensorboardLogger
|
2023-05-10 09:48:36 +00:00
|
|
|
TBLogger = TensorboardLogger
|
|
|
|
TBCallback = TensorBoardCallback
|
|
|
|
except ModuleNotFoundError:
|
2023-05-12 07:56:44 +00:00
|
|
|
from freqtrade.freqai.tensorboard.base_tensorboard import (BaseTensorBoardCallback,
|
|
|
|
BaseTensorboardLogger)
|
2023-05-12 17:47:53 +00:00
|
|
|
TBLogger = BaseTensorboardLogger # type: ignore
|
|
|
|
TBCallback = BaseTensorBoardCallback # type: ignore
|
2023-05-10 09:48:36 +00:00
|
|
|
|
|
|
|
__all__ = (
|
|
|
|
"TBLogger",
|
|
|
|
"TBCallback"
|
|
|
|
)
|