pfnet / pytorch-pfn-extras

Supplementary components to accelerate research and development in PyTorch
https://medium.com/pytorch/migration-from-chainer-to-pytorch-8ed92c12c8
MIT License
271 stars 52 forks source link

Can we use classmethod or staticmethod directry from type? #826

Closed kondounagi closed 3 months ago

kondounagi commented 3 months ago

I would like to call staticmethod or classmethod like this.

hoge:
  type: HogeClass.classmethod # HogeClass.classmethod not in types 

How is it possible? Or, is there any recommended way to do an equivalent thing?

kmaehashi commented 3 months ago

All types must be declared in types dict.

kondounagi commented 3 months ago

I understood it.Sorry for silly question.This library is really helpful for us.Thanks2024/07/31 20:15、Kenichi Maehashi @.***>のメール: All types must be declared in types dict.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>