Skip to content

Remove reshape_t #6106

Closed
Closed
@ricardoV94

Description

@ricardoV94

It no longer seems to be true that x.reshape(()) does not work in Aesara.

pymc/pymc/aesaraf.py

Lines 618 to 623 in 761f77d

def reshape_t(x, shape):
"""Work around fact that x.reshape(()) doesn't work"""
if shape != ():
return x.reshape(shape)
else:
return x[0]

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