Turi Create  4.0
batch_size.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 
7 #ifndef TURI_VISUALIZATION_BATCH_SIZE_HPP
8 #define TURI_VISUALIZATION_BATCH_SIZE_HPP
9 
10 #include <core/data/sframe/gl_sarray.hpp>
11 #include <core/data/sframe/gl_sframe.hpp>
12 
13 namespace turi {
14 namespace visualization {
15 
16  // Computes batch sizes for a variety of input.
17  // For now, very basic implementations (constant w.r.t. number of columns),
18  // But could potentially use the types of columns or even the data itself.
19  size_t batch_size(const gl_sarray& x);
20  size_t batch_size(const gl_sarray& x, const gl_sarray& y);
21  size_t batch_size(const gl_sframe& sf);
22 
23 }
24 }
25 
26 #endif