Skip to content

[BUG] [CuTeDSL] Class Type resolution Error in 4.3.4/4.3.5 #2948

@HanGuo97

Description

@HanGuo97

Which component has the problem?

CuTe DSL

Bug Report

Describe the bug
When a class is defined inside a class and used in subsequent type annotations, latest version will raise an error saying the class is undefined. This works fine in 4.3.3 but 4.3.4, 4.3.5 will fail.

Steps/Code to reproduce bug

import cutlass
import cutlass.cute as cute

class A:
    class B:
        pass

    @cute.jit
    def f(self) -> B:
        return B()


@cute.jit
def func():
    A().f()
func()

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