returns true if the gradient is stale , also updates the cachegradientstamp . concode_field_sep int cachedGradientChangeStamp concode_elem_sep CRF crf concode_elem_sep int cachedValueChangeStamp concode_field_sep boolean isValueStale
boolean function ( ) { if ( crf . weightsValueChangeStamp != cachedGradientChangeStamp ) { cachedGradientChangeStamp = crf . weightsValueChangeStamp ; return true ; } return false ; }