Spaces:
Running
Running
File size: 421 Bytes
dc2106c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
/*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <vector>
#include "onnx/onnx-operators_pb.h"
namespace ONNX_NAMESPACE {
template <typename T>
TensorProto ToTensor(const T& value);
template <typename T>
TensorProto ToTensor(const std::vector<T>& values);
template <typename T>
const std::vector<T> ParseData(const TensorProto* tensor_proto);
} // namespace ONNX_NAMESPACE
|