Pythonではクラスに対して自分で属性を付与することができ、その属性に応じて処理を使い分けたりエラー判定に使ったりできます。 属性を付与する際はsetattr()を使います。 class SetattrTest: def __init__(self, attr_map: dict): # 辞書型で受け取った引数のキーを属性名 ...
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Issue: Torch dynamo does not correctly pass along the existance of offsets() or values() methods to hasattr when compiling jagged. This prevents easily distinguishing nested tensors from jagged.