Skip to content

guidelines on how to define the compute graph -- a.k.a., the forward pass #6

@wsunid

Description

@wsunid

Hi,

I'm playing your sparse optimizer and meet an error.

Basically, in my compute graph, I calculate two losses from two sets of 2D tracks -- residual A^{m, 2} and residual B^{n, 2} and then concatenate them into a final loss tensor of size (m+n)x2.
But it reports the errors below:

bae/optim/optimizer.py", line 12, in jacobian

assert output.optrace[id(output)][0] == 'map', "The last operation in compute graph being indexing transform is not meaningful"

AttributeError: 'TrackingTensor' object has no attribute 'optrace'. Did you mean: 'trace'? 

It seems that the optimizer has the very strict requirements on how we define the compute graph. Could you please give me some insight regarding why this happen and the guidance on how we should define the proper compute graph?

Thanks,
Weiwei.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions