(self,
                            features,
                            softmax,
                            alpha=None,
                            extra_outputs=None)
return predictions
Get prediction results for postprocessing at inference time.
    Args:
      extra_outputs: optional extra outputs from model() other than logits.
Get prediction results for postprocessing at inference time.
    Args:
      extra_outputs: optional extra outputs from model() other than logits.
Get prediction results for postprocessing at inference time . Args : extra_outputs : optional extra outputs from model () other than logits .
def get_infer_predictions(self,
                            features,
                            softmax,
                            alpha=None,
                            extra_outputs=None):
    '''
    Get prediction results for postprocessing at inference time.
    Args:
      extra_outputs: optional extra outputs from model() other than logits.
    '''
    predictions = {"softmax": softmax}
    if alpha:
      predictions.update({
          "alignment": alpha,
      })
    predictions.update(features)
    predictions.pop('audio', None)
    if extra_outputs is not None:
      predictions.update(extra_outputs)

    logging.info('predictions: {}'.format(predictions))
    return predictions
def get_infer_predictions ( self , features , softmax , alpha = None , extra_outputs = None ) : predictions = { "softmax" : softmax } if alpha : predictions . update ( { "alignment" : alpha , } ) predictions . update ( features ) predictions . pop ( 'audio' , None ) if extra_outputs is not None : predictions . update ( extra_outputs ) logging . info ( 'predictions: {}' . format ( predictions ) ) return predictions