def device_from_tuple(job, taskid, devtype, devid):
  """ Simply build the device string associated with the given tuple.
  Args:
    job     Job name
    taskid  Task ID
    devtype Device type
    devid   Device ID
  Returns:
    Associated device name
  """
  return "/job:" + job + "/replica:0/task:" + taskid + "/device:" + devtype + ":" + devid