Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.

fix _compute_batch_settings to not overwrite count with max_batchcount #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/dataview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ function _compute_batch_settings(source, size::Int = -1, count::Int = -1, obsdim
# use count just for boundscheck
max_batchcount = floor(Int, num_observations / size)
count <= max_batchcount || throw(ArgumentError("Specified number of partitions is too large for the specified size"))
count = max_batchcount
end

# check if the settings will result in all data points being used
Expand Down