File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace executorch {
1919namespace extension {
2020namespace llm {
2121
22- void inline ET_EXPERIMENTAL safe_printf (const char * piece) {
22+ ET_EXPERIMENTAL void inline safe_printf (const char * piece) {
2323 // piece might be a raw byte token, and we only want to print printable chars
2424 // or whitespace because some of the other bytes can be various control codes,
2525 // backspace, etc.
@@ -41,7 +41,7 @@ void inline ET_EXPERIMENTAL safe_printf(const char* piece) {
4141// ----------------------------------------------------------------------------
4242// utilities: time
4343
44- long inline time_in_ms () {
44+ ET_EXPERIMENTAL long inline time_in_ms () {
4545 // return time in milliseconds, for benchmarking the model speed
4646 struct timespec time;
4747 clock_gettime (CLOCK_REALTIME, &time);
@@ -55,7 +55,7 @@ long inline time_in_ms() {
5555// RSS: Resident Set Size, the amount of memory currently in the RAM for this
5656// process. These values are approximate, and are only used for logging
5757// purposes.
58- size_t inline get_rss_bytes () {
58+ ET_EXPERIMENTAL size_t inline get_rss_bytes () {
5959#if defined(__linux__) || defined(__ANDROID__) || defined(__unix__)
6060 struct rusage r_usage;
6161 if (getrusage (RUSAGE_SELF, &r_usage) == 0 ) {
You can’t perform that action at this time.
0 commit comments