docstr: Initialize for decoding.
docstr_tok: ["Initialize","for","decoding","."]
code: def initialize(
      self, src, src_len, src_map=None, device=None, target_prefix=None
  ):
      """Initialize for decoding."""
  
      if device is None:
          device = src.device
  
      (fn_map_state, _, src_map) = super(
          GreedySearchLM, self
      ).initialize(None, src_len, src_map, device, target_prefix)
  
      return fn_map_state, src, src_map
  
imports: import torch
  from torch.nn.functional import softmax
  from onmt.translate.decode_strategy import DecodeStrategy
label_desc: Use image node_id 2 for calling the GreedySearchLM obj's underlying member method code with example usage: obj.initialize(src, src_len, src_map, device, target_prefix) and returns: fn_map_state,  src,  src_map