def _get_required_padding_sizes(graphs_tuple, padded_size):
  """Gets the padding size, given a GraphsTuple and the total padded sizes."""
  graph_size = get_graphs_tuple_size(graphs_tuple)
  return GraphsTupleSize(*(b - c for b, c in zip(padded_size, graph_size)))
Gets the padding size, given a GraphsTuple and the total padded sizes.
graph_nets/utils_tf.py