Commit 8d14dd29 authored by Rich Ho's avatar Rich Ho
Browse files

update accoding to comments

parent c931c484
#ifndef TIMER_HH #ifndef TIMER_HH
#define TIMER_HH #define TIMER_HH
/*
* This part of code is not used.
#include <chrono> #include <chrono>
inline double getDuration(std::chrono::time_point<std::chrono::system_clock> a, inline double getDuration(std::chrono::time_point<std::chrono::system_clock> a,
...@@ -9,8 +11,7 @@ inline double getDuration(std::chrono::time_point<std::chrono::system_clock> a, ...@@ -9,8 +11,7 @@ inline double getDuration(std::chrono::time_point<std::chrono::system_clock> a,
} }
#define timestamp(__var__) auto __var__ = std::chrono::system_clock::now(); #define timestamp(__var__) auto __var__ = std::chrono::system_clock::now();
*/
#include <chrono>
#endif // TIMER_HH #endif // TIMER_HH
...@@ -12,7 +12,7 @@ class NaiveGate(BaseGate): ...@@ -12,7 +12,7 @@ class NaiveGate(BaseGate):
r""" r"""
A naive gate implementation that defines the standard behavior of the gate A naive gate implementation that defines the standard behavior of the gate
which determines which experts the tokens are going to. which determines which experts the tokens are going to.
Both the indecies and the score, or confidence, are output to the parent Both the indicies and the score, or confidence, are output to the parent
module. module.
The load-balance strategies are also designed to be implemented within the The load-balance strategies are also designed to be implemented within the
`Gate` module. `Gate` module.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment