Skip to content

Missing check for undefined Parameter in an ImageParam #8699

@rtzam

Description

@rtzam
>>> from halide import ImageParam
>>> ImageParam()
Traceback (most recent call last):
  File "<python-input-10>", line 1, in <module>
    ImageParam()
    ~~~~~~~~~~^^
halide.halide_.HalideError: Error: Parameter is undefined

However the default constructor is valid per the docs

No error is thrown when not printing as shown here

>>> a = ImageParam()
>>> a
Traceback (most recent call last):
  File "<python-input-12>", line 1, in <module>
    a
halide.halide_.HalideError: Error: Parameter is undefined

Suggesting there is a missing check for an undefined Parameter structure when printing

Installation details:

  • Halide version 20.0.0.dev86 installed via pip

Metadata

Metadata

Assignees

Labels

pythonIssues related to Halide/Python interop

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions