Skip to content

Performance issues about tf.function #10

@DLPerf

Description

@DLPerf

Hello! Our static bug checker has found a performance issue in imitation_learning/train_bc.py: Python type argument epoch is passed to tf.function decorated function train instead of tensors. As there is a for loop, every time the value changes, a new graph will be generated, and that can trigger tf.function retracing warning.

Similar issue in cmvae/train_cmvae.py.

Here is the tensorflow document to support it.

Looking forward to your reply.

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