forked from pytorch/ELF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pytorch#70 from jma127/master
Big refactor from FAIR team
- Loading branch information
Showing
69 changed files
with
2,699 additions
and
1,673 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
[submodule "third_party/concurrentqueue"] | ||
path = third_party/concurrentqueue | ||
url = https://github.com/cameron314/concurrentqueue.git | ||
[submodule "third_party/cppzmq"] | ||
path = third_party/cppzmq | ||
url = https://github.com/zeromq/cppzmq.git | ||
[submodule "third_party/googletest"] | ||
path = third_party/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "third_party/json"] | ||
path = third_party/json | ||
url = https://github.com/nlohmann/json.git | ||
[submodule "third_party/pybind11"] | ||
path = third_party/pybind11 | ||
url = https://github.com/pybind/pybind11.git | ||
[submodule "third_party/spdlog"] | ||
path = third_party/spdlog | ||
url = https://github.com/gabime/spdlog.git | ||
[submodule "third_party/json"] | ||
path = third_party/json | ||
url = https://github.com/nlohmann/json.git | ||
[submodule "third_party/googletest"] | ||
path = third_party/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "third_party/tbb"] | ||
path = third_party/tbb | ||
url = https://github.com/01org/tbb.git | ||
ignore = untracked | ||
[submodule "third_party/cppzmq"] | ||
path = third_party/cppzmq | ||
url = https://github.com/zeromq/cppzmq.git |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -61,8 +61,10 @@ struct StateTrait { | |
return s1 == s2; | ||
} | ||
|
||
static bool | ||
moves_since(const S& s, size_t* next_move_number, std::vector<A>* moves) { | ||
static bool moves_since( | ||
const S& /*s*/, | ||
size_t* /*next_move_number*/, | ||
std::vector<A>* /*moves*/) { | ||
// By default it is not provided. | ||
return false; | ||
} | ||
|
@@ -84,7 +86,7 @@ struct ActionTrait { | |
template <typename Actor> | ||
struct ActorTrait { | ||
public: | ||
static std::string to_string(const Actor& a) { | ||
static std::string to_string(const Actor&) { | ||
return ""; | ||
} | ||
}; | ||
|
@@ -213,6 +215,7 @@ struct MCTSResultT { | |
enum RankCriterion { MOST_VISITED = 0, PRIOR = 1, UNIFORM_RANDOM }; | ||
|
||
Action best_action; | ||
float root_value; | ||
float max_score; | ||
EdgeInfo best_edge_info; | ||
MCTSPolicy<Action> mcts_policy; | ||
|
@@ -224,6 +227,7 @@ struct MCTSResultT { | |
// action_edges [email protected] | ||
MCTSResultT() | ||
: best_action(ActionTrait<Action>::default_value()), | ||
root_value(0.0), | ||
max_score(std::numeric_limits<float>::lowest()), | ||
best_edge_info(0), | ||
total_visits(0), | ||
|
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
Oops, something went wrong.