Skip to content

Rectify Return type hint #6811

Closed
Closed
@Dhruvanshu-Joshi

Description

@Dhruvanshu-Joshi

Description

Take a look at the code snippet below:

def find_measurable_comparisons(
fgraph: FunctionGraph, node: Node
) -> Optional[List[MeasurableComparison]]:

Here, the return type hint is wrong. MeasurableComparision is an Op, but what is returned are TensorVariables whose node has that Op.

This needs to be rectified for all the functions which intend to find a measurable op.

CC @ricardoV94 @larryshamalama

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