trainstepC function

internal function for s-esom