Turi Create
4.0
float_array_serialization.hpp
1
/* Copyright © 2020 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
5
* https://opensource.org/licenses/BSD-3-Clause
6
*/
7
8
#pragma once
9
10
#include <core/storage/serialization/serialization_includes.hpp>
11
#include <ml/neural_net/float_array.hpp>
12
13
namespace
turi
{
14
15
// To allow the neural_net library to stand alone, the serialization code that
16
// depends on core/storage/serialization lives here.
17
// TODO: Consider converting float_array values to flex_nd_vec, but we must
18
// support at least importing this serialization that released with TC 6.0.
19
20
void
save_float_array_map(
const
neural_net::float_array_map& weights,
21
oarchive& oarc);
22
neural_net::float_array_map load_float_array_map(iarchive& iarc);
23
24
}
// namespace turi
turi
SKD.
Definition:
capi_initialization.hpp:11
toolkits
util
float_array_serialization.hpp
Generated by
1.8.13