code-loader 1.0.72.dev1__py3-none-any.whl → 1.0.72.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -240,15 +240,14 @@ class LeapBinder:
240
240
  leap_binder.add_custom_loss(custom_loss_function, name='custom_loss')
241
241
  """
242
242
 
243
- regular_arg_names = []
243
+ regular_arg_names = inspect.getfullargspec(function)[0]
244
244
  preprocess_response_arg_name = None
245
245
  for arg_name, arg_type in inspect.getfullargspec(function).annotations.items():
246
246
  if arg_type == SamplePreprocessResponse:
247
247
  if preprocess_response_arg_name is not None:
248
248
  raise Exception("only one argument can be of type SamplePreprocessResponse")
249
249
  preprocess_response_arg_name = arg_name
250
- else:
251
- regular_arg_names.append(arg_name)
250
+ regular_arg_names.remove(arg_name)
252
251
 
253
252
  self.setup_container.custom_loss_handlers.append(
254
253
  CustomLossHandler(CustomLossHandlerData(name, regular_arg_names), function))
code_loader/leaploader.py CHANGED
@@ -330,8 +330,7 @@ class LeapLoader(LeapLoaderBase):
330
330
  for visualizer_handler in setup.visualizers]
331
331
 
332
332
  custom_losses = [CustomLossInstance(custom_loss.custom_loss_handler_data.name,
333
- custom_loss.custom_loss_handler_data.arg_names,
334
- custom_loss.custom_loss_handler_data.preprocess_response_arg_name)
333
+ custom_loss.custom_loss_handler_data.arg_names)
335
334
  for custom_loss in setup.custom_loss_handlers]
336
335
 
337
336
  prediction_types = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-loader
3
- Version: 1.0.72.dev1
3
+ Version: 1.0.72.dev3
4
4
  Summary:
5
5
  Home-page: https://github.com/tensorleap/code-loader
6
6
  License: MIT
@@ -19,14 +19,14 @@ code_loader/experiment_api/types.py,sha256=MY8xFARHwdVA7p4dxyhD60ShmttgTvb4qdp1o
19
19
  code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZJEqBqc,3304
20
20
  code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
21
21
  code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
22
- code_loader/inner_leap_binder/leapbinder.py,sha256=una-6k_nnSeqrLNjCy3beXdje_MWXbCRLoCalKdNYbg,26693
22
+ code_loader/inner_leap_binder/leapbinder.py,sha256=-fryKzD8T8K2EgrOsR5NryabP8_1k_m3POLwhYIA_8I,26708
23
23
  code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=ebMxknpKMW-dE8Erq0fFq4RrE5E_Jfx9IvmRRZSdhlc,20813
24
- code_loader/leaploader.py,sha256=DCrSS2789dkkePROJSwhAhgzQvR4_27YAR__PxCcLNc,23025
24
+ code_loader/leaploader.py,sha256=g160Z0MRop_7m3bu1HawcGoZNKakvs9Su4tEfbQ9pR0,22914
25
25
  code_loader/leaploaderbase.py,sha256=FDXjTFBjnpfUyZ2tS3wLo7y2j82Qb_VKHI1BMB5gFww,3269
26
26
  code_loader/utils.py,sha256=aw2i_fqW_ADjLB66FWZd9DfpCQ7mPdMyauROC5Nd51I,2197
27
27
  code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  code_loader/visualizers/default_visualizers.py,sha256=Ffx5VHVOe5ujBOsjBSxN_aIEVwFSQ6gbhTMG5aUS-po,2305
29
- code_loader-1.0.72.dev1.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
30
- code_loader-1.0.72.dev1.dist-info/METADATA,sha256=WBFziucTTs-QHppp3QzdoSp_j9KXh1W9njNsHAGxxSo,854
31
- code_loader-1.0.72.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- code_loader-1.0.72.dev1.dist-info/RECORD,,
29
+ code_loader-1.0.72.dev3.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
30
+ code_loader-1.0.72.dev3.dist-info/METADATA,sha256=-9q2S44uQTVZhb3uYyUp_T3ByP5WuljvF9blRuuly3g,854
31
+ code_loader-1.0.72.dev3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ code_loader-1.0.72.dev3.dist-info/RECORD,,