mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: overload resolution bug
This commit is contained in:
parent
66352ddd3a
commit
21d5f22ca8
5 changed files with 30 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
dataset = pyimport "torch/utils/data/dataset"
|
||||
{Tensor!;} = pyimport "torch"
|
||||
|
||||
.VisionDataset: ClassType
|
||||
.VisionDataset <: dataset.Dataset
|
||||
.VisionDataset|<: Indexable(Nat, (Tensor!(Float, _), Tensor!(Float, _)))|.
|
||||
__getitem__: (index: Nat) -> (Tensor!(Float, _), Tensor!(Float, _))
|
||||
.VisionDataset.
|
||||
__call__: (
|
||||
root: Str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue