Skip to content

Commit 0e7ca14

Browse files
committed
Minor sync. No change in functionality.
1 parent 681aee5 commit 0e7ca14

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

tensorflow_fold/llgtm/BUILD

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ load(
1313
"if_cuda",
1414
)
1515

16-
1716
package(
1817
default_visibility = [
1918
"//tensorflow_fold/llgtm:__subpackages__",
@@ -291,9 +290,9 @@ test_suite(
291290
name = "cpu_tests",
292291
tests = [
293292
"evaluator_test_eigen",
294-
# "evaluator_test_tf", # disabled due to tf visibility
293+
# "evaluator_test_tf", # disabled due to tf visibility
295294
"gradients_test_eigen",
296-
# "gradients_test_tf", # disabled due to tf visibility
295+
# "gradients_test_tf", # disabled due to tf visibility
297296
"graph_nocompile_test",
298297
"graph_test",
299298
],

tensorflow_fold/llgtm/platform/external.h

+12-7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct FlagType<double> { using type = float; };
4545

4646
// The following macros provide a convenient mechanism for declaring,
4747
// parsing, and using command line flags. See examples for usage.
48+
// The macros are the public interface; the classes are private.
4849
#define BEGIN_COMMAND_LINE_FLAGS \
4950
llgtm::platform::CommandLineFlagRegistry global_commandline_flag_registry
5051

@@ -62,6 +63,7 @@ struct FlagType<double> { using type = float; };
6263
global_commandline_flag_registry.Parse(&ARGC, ARGV)
6364

6465

66+
namespace { //
6567
class CommandLineFlagRegistry;
6668

6769
// Base class for command line flags.
@@ -95,9 +97,9 @@ class CommandLineFlagBase {
9597
template<class T>
9698
class CommandLineFlag : CommandLineFlagBase {
9799
public:
98-
inline CommandLineFlag(const char* name, const char* type,
99-
const char* valstr, const char* docstr,
100-
T default_value, CommandLineFlagRegistry* registry);
100+
CommandLineFlag(const char* name, const char* type,
101+
const char* valstr, const char* docstr,
102+
T default_value, CommandLineFlagRegistry* registry);
101103

102104
const T& value() const { return value_; }
103105

@@ -144,13 +146,16 @@ class CommandLineFlagRegistry {
144146

145147

146148
template<class T>
147-
CommandLineFlag<T>::CommandLineFlag(const char* name, const char* type,
148-
const char* valstr, const char* docstr,
149-
T default_value,
150-
CommandLineFlagRegistry* registry)
149+
inline CommandLineFlag<T>::CommandLineFlag(const char* name,
150+
const char* type,
151+
const char* valstr,
152+
const char* docstr,
153+
T default_value,
154+
CommandLineFlagRegistry* registry)
151155
: CommandLineFlagBase(name, type, valstr, docstr), value_(default_value) {
152156
registry->Register(this);
153157
}
158+
} // namespace
154159

155160
} // namespace platform
156161
} // namespace llgtm

0 commit comments

Comments
 (0)