Turi Create
4.0
util.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
#ifndef TURI_ML2_DATA_STORAGE_UTIL_H_
7
#define TURI_ML2_DATA_STORAGE_UTIL_H_
8
9
#include <toolkits/ml_data_2/metadata.hpp>
10
#include <core/storage/sframe_data/sarray.hpp>
11
12
namespace
turi
{
namespace
v2 {
namespace
ml_data_internal {
13
14
/** Estimate the number of rows to stick into one block. The goal is
15
* to have it about ML_DATA_TARGET_ROW_BYTE_MINIMUM bytes per block.
16
*
17
*/
18
size_t
estimate_row_block_size(
19
size_t
original_sframe_num_rows,
20
const
row_metadata& rm,
21
const
std::vector<std::shared_ptr<
sarray<flexible_type>::reader_type
> >& column_readers);
22
23
}}}
24
25
#endif
/* TURI_ML2_DATA_STORAGE_UTIL_H_ */
turi::sarray::reader_type
sarray_reader< T > reader_type
The reader type.
Definition:
sarray.hpp:128
turi
SKD.
Definition:
capi_initialization.hpp:11
toolkits
ml_data_2
data_storage
util.hpp
Generated by
1.8.13