Skip to content

Commit

Permalink
[BUG FIX] add export declaration of GaussianRandom function (#2379)
Browse files Browse the repository at this point in the history
* Update fd_type.cc

[bug fix]add define for destroy TwoDimArrayCstr for c_api

* [BUG FIX] add export declaration of GaussianRandom function
  • Loading branch information
ChaoII committed Mar 5, 2024
1 parent d197f7d commit cc8d1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions c_api/fastdeploy_capi/core/fd_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ DECLARE_AND_IMPLEMENT_FD_TYPE_ONEDIMARRAY(OneDimArrayFloat)
DECLARE_AND_IMPLEMENT_FD_TYPE_ONEDIMARRAY(Cstr)
// FD_C_OneDimArrayCstr
DECLARE_AND_IMPLEMENT_FD_TYPE_TWODIMARRAY(OneDimArrayCstr, Cstr)
// FD_C_TwoDimArrayCstr
DECLARE_AND_IMPLEMENT_FD_TYPE_THREEDIMARRAY(TwoDimArrayCstr,OneDimArrayCstr)
// FD_C_TwoDimArraySize
DECLARE_AND_IMPLEMENT_FD_TYPE_TWODIMARRAY(TwoDimArraySize, OneDimArraySize)
// FD_C_TwoDimArrayInt8
Expand Down
2 changes: 1 addition & 1 deletion fastdeploy/function/gaussian_random.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace function {
@param seed The seed of random generator.
@param dtype The data type of the output Tensor.
*/
void GaussianRandom(const std::vector<int64_t>& shape, FDTensor* out,
FASTDEPLOY_DECL void GaussianRandom(const std::vector<int64_t>& shape, FDTensor* out,
FDDataType dtype = FDDataType::FP32, float mean = 0.0f,
float std = 1.0f, int seed = 0);

Expand Down

0 comments on commit cc8d1f3

Please sign in to comment.