mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-07 09:58:17 +01:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
27 lines
720 B
C++
27 lines
720 B
C++
#pragma once
|
|
#include <twml/defines.h>
|
|
#include <twml/Tensor.h>
|
|
|
|
#ifdef __cplusplus
|
|
namespace twml {
|
|
|
|
// Adding these as an easy way to test the wrappers
|
|
TWMLAPI void add1(Tensor &output, const Tensor input);
|
|
TWMLAPI void copy(Tensor &output, const Tensor input);
|
|
TWMLAPI int64_t featureId(const std::string &feature);
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Adding these as an easy way to test the wrappers
|
|
TWMLAPI twml_err twml_add1(twml_tensor output, const twml_tensor input);
|
|
TWMLAPI twml_err twml_copy(twml_tensor output, const twml_tensor input);
|
|
TWMLAPI twml_err twml_get_feature_id(int64_t *result, const uint64_t len, const char *str);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|