Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
 
#include <string>
#include <torch/torch.h>
 
namespace onnxruntime {
namespace lazytensor {
// This function contains function for comparing values
// and printing values. They are mainly used for debugging.
 
bool CompareTensor(const at::Tensor& left, const at::Tensor& right);
bool CompareScalar(const at::Scalar& left, const at::Scalar& right);
bool Compare(const c10::IValue& left, const c10::IValue& right);
bool CompareStack(const torch::jit::Stack& left, const torch::jit::Stack& right);
std::string ToString(const c10::IValue& value);
std::string ToString(const at::ArrayRef<c10::IValue>& values);
// "torch::jit::Value" is abstract symbol in torch::jit::Graph.
// It represents inputs and outputs for graph, block, and node.
// Note that the actual computation reuslt's type is c10::IValue.
std::string ToString(const torch::jit::Value& value);
std::string ToString(const torch::jit::Node& node);
}  // namespace lazytensor
}  // namespace onnxruntime