Skip to content

Commit

Permalink
Merge pull request apache#42 from vchuravy/vc/fix_ops
Browse files Browse the repository at this point in the history
Fixes usuage of floor
  • Loading branch information
pluskid committed Nov 27, 2015
2 parents bb7e542 + 74cc5ba commit 0d11ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end
"""
function _split_inputs(batch_size :: Int, n_split :: Int)
@assert(batch_size >= n_split)
per_split = floor(Int, batch_size / n_split)
per_split = Base.floor(Int, batch_size / n_split)
counts = Base.zeros(Int, n_split)+per_split
extra = batch_size - sum(counts)
counts[1:extra] += 1
Expand Down

0 comments on commit 0d11ebc

Please sign in to comment.