Skip to content

Commit 1708b0a

Browse files
authored
Merge pull request #10 from peterchen96/add_reshape
Add a new dispatch of `Base.reshape` in `patch.jl`
2 parents 914a2dc + b1dfea7 commit 1708b0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patch.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ GameParameter(x::Int) = GameParameter(Ref(Int32(x)))
1414

1515
Base.copy(s::CxxWrap.StdLib.UniquePtrAllocated{State}) = deepcopy(s)
1616
Base.deepcopy(s::CxxWrap.StdLib.UniquePtrAllocated{State}) = clone(s)
17+
Base.reshape(s::CxxWrap.StdLib.StdVectorAllocated, dims::Int32...) = reshape(s, Int.(dims))
1718

1819
if Sys.KERNEL == :Linux
1920
function apply_action(state, actions::AbstractVector{<:Number})

0 commit comments

Comments
 (0)