Skip to content
Discussion options

You must be logged in to vote
class DynamicsData(Data):
    def __init__(self, x=None, edge_index=None, edge_index_blocks=None, edge_index_obstacles=None, neg_block_ids=None, neg_obstacle_ids=None, **kwargs):
        super().__init__(**kwargs)
        self.x = x
        self.edge_index = edge_index
        self.edge_index_blocks = edge_index_blocks
        self.edge_index_obstacles = edge_index_obstacles
        self.neg_block_ids = neg_block_ids
        self.neg_obstacle_ids = neg_obstacle_ids

    def __inc__(self, key, value, *args, **kwargs):
        if key in ['edge_index', 'edge_index_blocks', 'edge_index_obstacles', 'neg_block_ids', 'neg_obstacle_ids']:
            return self.x.size(0)
        else:
            

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davidireland3
Comment options

Answer selected by davidireland3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants