nvalchemi.training.distillation.signal_for_field#
- nvalchemi.training.distillation.signal_for_field(field, signals=None)[source]#
Return the signal that populates field, or
Nonewhen 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
TeacherSignalspecs. DefaultNone(the built-in signals).
- Returns:
Name of the signal populating field, as its own or a companion field, or
Nonewhen no searched signal writes it.- Return type:
str | None