mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
This patch adds support for scalar results to the client/server protocol and tests. In addition to `TensorData`, a new type `ScalarData` is added. Previous representations of scalar values using one-dimensional `TensorData` instances have been replaced with proper instantiations of `ScalarData`. The generic use of `TensorData` for scalar and tensor values has been replaced with uses of a new variant `ScalarOrTensorData`, which can either hold an instance of `TensorData` or `ScalarData`.
28 lines
878 B
C++
28 lines
878 B
C++
// Part of the Concrete Compiler Project, under the BSD3 License with Zama
|
|
// Exceptions. See
|
|
// https://github.com/zama-ai/concrete-compiler-internal/blob/main/LICENSE.txt
|
|
// for license information.
|
|
|
|
#ifndef CONCRETELANG_SERVERLIB_DYNAMIC_RANK_CALL_H
|
|
#define CONCRETELANG_SERVERLIB_DYNAMIC_RANK_CALL_H
|
|
|
|
#include <vector>
|
|
|
|
#include "concretelang/ClientLib/Types.h"
|
|
|
|
namespace concretelang {
|
|
namespace serverlib {
|
|
|
|
using concretelang::clientlib::ScalarOrTensorData;
|
|
|
|
ScalarOrTensorData multi_arity_call_dynamic_rank(void *(*func)(void *...),
|
|
std::vector<void *> args,
|
|
size_t rank,
|
|
size_t element_width,
|
|
bool is_signed);
|
|
|
|
} // namespace serverlib
|
|
} // namespace concretelang
|
|
|
|
#endif
|