Skip to content

Commit

Permalink
Add method
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Apr 8, 2024
1 parent f5d7252 commit ebebf6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Architectures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ struct SingleDeviceArchitecture{B,D} <: Architecture
end
end

SingleDeviceArchitecture(arch::Architecture) = SingleDeviceArchitecture(get_backend(arch), get_device(arch))

"""
Arch(backend::Backend; device_id::Integer=1)
Expand Down

0 comments on commit ebebf6f

Please sign in to comment.