def average_size(self):
    'Constructs a TF graph for evaluating the average size of a forest.\n\n    Returns:\n      The average number of nodes over the trees.\n    '
    sizes = []
    for i in range(self.params.num_trees):
        with ops.device(self.device_assigner.get_device(i)):
            sizes.append(self.trees[i].size())
    return math_ops.reduce_mean(array_ops.pack(sizes))
Constructs a TF graph for evaluating the average size of a forest.

Returns:
  The average number of nodes over the trees.
def average_size(self):
    'Constructs a TF graph for evaluating the average size of a forest.\n\n    Returns:\n      The average number of nodes over the trees.\n    '
    sizes = []
    for i in range(self.params.num_trees):
        with ops.device(self.device_assigner.get_device(i)):
            sizes.append(self.trees[i].size())
    return math_ops.reduce_mean(array_ops.pack(sizes))