mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix fastAI binding not reporting scalars if tensorboard is installed
This commit is contained in:
parent
0b521b00a6
commit
0959974920
@ -8,6 +8,7 @@ from . import _patched_call
|
||||
from .tensorflow_bind import WeightsGradientHistHelper
|
||||
from ..import_bind import PostImportHookPatching
|
||||
from ...debugging.log import LoggerRoot
|
||||
from .tensorflow_bind import IsTensorboardInit
|
||||
|
||||
try:
|
||||
import fastai
|
||||
@ -51,7 +52,7 @@ class PatchFastaiV1(object):
|
||||
@staticmethod
|
||||
def patch_model_callback():
|
||||
# if you have tensorboard, we assume you use TensorboardLogger, which we catch, so no need to patch.
|
||||
if "tensorboard" in sys.modules:
|
||||
if "tensorboard" in sys.modules and IsTensorboardInit.tensorboard_used():
|
||||
return
|
||||
|
||||
try:
|
||||
@ -191,7 +192,7 @@ class PatchFastaiV2(object):
|
||||
|
||||
@staticmethod
|
||||
def patch_model_callback():
|
||||
if "tensorboard" in sys.modules:
|
||||
if "tensorboard" in sys.modules and IsTensorboardInit.tensorboard_used():
|
||||
return
|
||||
|
||||
# noinspection PyBroadException
|
||||
|
Loading…
Reference in New Issue
Block a user