fix sprintf type
This commit is contained in:
parent
3feb574bf0
commit
b49b501e26
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
if (_tensor_name.empty()) {
|
||||
static std::atomic_uint32_t unnamed_tensor_count = 0;
|
||||
char buffer[GGML_MAX_NAME] = {};
|
||||
snprintf(buffer, sizeof(buffer), "unnamed_%p", unnamed_tensor_count++);
|
||||
snprintf(buffer, sizeof(buffer), "unnamed_%d", (int)(unnamed_tensor_count++));
|
||||
_tensor_name = buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue