def __init__(self, params, device_assigner=None, variables=None, tree_variables_class=TreeTrainingVariables, tree_graphs=None, training=True, t_ops=training_ops, i_ops=inference_ops):
    self.params = params
    self.device_assigner = (device_assigner or RandomForestDeviceAssigner())
    logging.info('Constructing forest with params = ')
    logging.info(self.params.__dict__)
    self.variables = (variables or ForestTrainingVariables(self.params, device_assigner=self.device_assigner, training=training, tree_variables_class=tree_variables_class))
    tree_graph_class = (tree_graphs or RandomTreeGraphs)
    self.trees = [tree_graph_class(self.variables[i], self.params, t_ops.Load(), i_ops.Load(), i) for i in range(self.params.num_trees)]
def __init__(self, params, device_assigner=None, variables=None, tree_variables_class=TreeTrainingVariables, tree_graphs=None, training=True, t_ops=training_ops, i_ops=inference_ops):
    self.params = params
    self.device_assigner = (device_assigner or RandomForestDeviceAssigner())
    logging.info('Constructing forest with params = ')
    logging.info(self.params.__dict__)
    self.variables = (variables or ForestTrainingVariables(self.params, device_assigner=self.device_assigner, training=training, tree_variables_class=tree_variables_class))
    tree_graph_class = (tree_graphs or RandomTreeGraphs)
    self.trees = [tree_graph_class(self.variables[i], self.params, t_ops.Load(), i_ops.Load(), i) for i in range(self.params.num_trees)]