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
|
2024-05-12 15:12:20 +00:00
|
|
|
|
2023-05-10 09:48:36 +00:00
|
|
|
TBLogger = TensorboardLogger
|
|
|
|
TBCallback = TensorBoardCallback
|
|
|
|
except ModuleNotFoundError:
|
2024-05-12 13:18:32 +00:00
|
|
|
from freqtrade.freqai.tensorboard.base_tensorboard import (
|
|
|
|
BaseTensorBoardCallback,
|
|
|
|
BaseTensorboardLogger,
|
|
|
|
)
|
2024-05-12 15:12:20 +00:00
|
|
|
|
2023-05-12 17:47:53 +00:00
|
|
|
TBLogger = BaseTensorboardLogger # type: ignore
|
|
|
|
TBCallback = BaseTensorBoardCallback # type: ignore
|
2023-05-10 09:48:36 +00:00
|
|
|
|
2024-05-12 15:12:20 +00:00
|
|
|
__all__ = ("TBLogger", "TBCallback")
|