Skip to content

Commit 713f610

Browse files
rahul003NihalHarish
authored andcommitted
remove references to worker in constructor and imports (aws#262)
1 parent 1ac5e38 commit 713f610

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tornasole/tensorflow/keras.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from .collection import *
33
from tornasole.core.hook import BaseHook
44
from tornasole.core.save_config import SaveConfig
5-
from tornasole.core.json_config import TORNASOLE_CONFIG_DEFAULT_WORKER_NAME
65

76

87
DEFAULT_INCLUDE_COLLECTIONS=['weights', 'gradients', 'metrics']
@@ -11,7 +10,6 @@
1110
class TornasoleHook(keras.callbacks.Callback, BaseHook):
1211
def __init__(self, out_dir,
1312
dry_run=False,
14-
worker=TORNASOLE_CONFIG_DEFAULT_WORKER_NAME,
1513
reduction_config=None,
1614
save_config=SaveConfig(),
1715
include_regex=None,
@@ -28,7 +26,6 @@ def __init__(self, out_dir,
2826
default_include_collections=DEFAULT_INCLUDE_COLLECTIONS,
2927
out_dir=out_dir,
3028
dry_run=dry_run,
31-
worker=worker,
3229
reduction_config=reduction_config,
3330
save_config=save_config,
3431
include_regex=None,

tornasole/xgboost/hook.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
from tornasole.core.save_config import SaveConfig
99
from tornasole.core.hook import CallbackHook
1010
from tornasole.core.access_layer.utils import training_has_ended
11-
from tornasole.core.json_config import (
12-
TORNASOLE_CONFIG_DEFAULT_WORKER_NAME,
13-
create_hook_from_json_config)
11+
from tornasole.core.json_config import create_hook_from_json_config
1412

1513
from .collection import get_collection_manager
1614
from .utils import validate_data_file_path, get_content_type, get_dmatrix

0 commit comments

Comments
 (0)