Skip to content

Allow ConstantOfShape to take python constants #860

@justinchuby

Description

@justinchuby

Instead of writing

op.ConstantOfShape(
    new_shape, value=make_tensor("zerof", TensorProto.FLOAT, [1], [0])
)

it would be great to be able to write

op.ConstantOfShape(
    new_shape, value=0.0)
)

cc @gramalingam

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