nvalchemi.training.distillation.signal_for_field#

nvalchemi.training.distillation.signal_for_field(field, signals=None)[source]#

Return the signal that populates field, or None when none does.

Parameters:
  • field (str) – Batch field name to resolve back to the signal that writes it.

  • signals (Iterable[str | TeacherSignal] | None, optional) – Signals to search, as built-in names or TeacherSignal specs. Default None (the built-in signals).

Returns:

Name of the signal populating field, as its own or a companion field, or None when no searched signal writes it.

Return type:

str | None