-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41ab5aa
commit d2bc474
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Georg Jung. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace FastBertTokenizer | ||
{ | ||
internal static class Constants | ||
{ | ||
// https://github.com/dotnet/runtime/blob/6ed57ec3d26353549d7bffe5055a7100f443ff5b/src/libraries/System.Text.Json/Common/JsonConstants.cs#L12C33-L12C33 | ||
public const int StackallocByteThreshold = 256; | ||
public const int StackallocCharThreshold = StackallocByteThreshold / 2; | ||
} | ||
} |