Skip to content

Add name keyword argument to Op.__call__ #685

Closed
@jessegrabowski

Description

@jessegrabowski

Description

Allow arbitrary Ops to be given names. It's a nice way to keep dprints readable and code tidy. Here's what I imagine:

Before:

x = pt.tensor('x', shape=(None,))
y = pt.tensor('y', shape=(None,))
z = pt.add(x, y)
z.name = 'z'

After:

x = pt.tensor('x', shape=(None,))
y = pt.tensor('y', shape=(None,))
z = pt.add(x, y, name='z')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions