abstract batch type
This commit is contained in:
parent
da1697a257
commit
957e23eb6b
@ -1,4 +1,4 @@
|
||||
struct Batch{T,S} <: AbstractVector{T}
|
||||
struct Batch{T,S} <: ABatch{T}
|
||||
data::CatMat{T,S}
|
||||
end
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
import Base: eltype, size, getindex, setindex!, convert
|
||||
|
||||
struct CatMat{T,S} <: AbstractVector{T}
|
||||
ABatch{T} = AbstractVector{T}
|
||||
|
||||
struct CatMat{T,S} <: ABatch{T}
|
||||
data::S
|
||||
end
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
struct Seq{T,S} <: AbstractVector{T}
|
||||
struct Seq{T,S} <: ABatch{T}
|
||||
data::CatMat{T,S}
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user