VariableSpace uses unordered maps as well (#270)
Signed-off-by: raver119 <raver119@gmail.com>master
parent
f0706b21aa
commit
241ed05c64
|
@ -45,9 +45,9 @@ namespace nd4j {
|
|||
// stash is NOT cloned
|
||||
nd4j::graph::Stash _stash;
|
||||
|
||||
std::map<std::pair<int, int>, Variable*> _paired;
|
||||
std::map<std::string, Variable*> _symbolic;
|
||||
std::map<int, Variable*> _variables;
|
||||
MAP_IMPL<std::pair<int, int>, Variable*> _paired;
|
||||
MAP_IMPL<std::string, Variable*> _symbolic;
|
||||
MAP_IMPL<int, Variable*> _variables;
|
||||
std::vector<Variable*> _external;
|
||||
std::vector<Variable*> _internal;
|
||||
|
||||
|
@ -61,7 +61,7 @@ namespace nd4j {
|
|||
|
||||
std::mutex _varmap;
|
||||
|
||||
std::map<int, nd4j::graph::Variable*> _temporary;
|
||||
MAP_IMPL<int, nd4j::graph::Variable*> _temporary;
|
||||
|
||||
std::vector<nd4j::graph::Variable*> *_handles;
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ TEST_F(PlaygroundTests, test_bert_1) {
|
|||
graph->getVariableSpace()->putVariable(86,0, u);
|
||||
graph->getVariableSpace()->putVariable(87,0, v);
|
||||
|
||||
/*
|
||||
|
||||
// validating graph now
|
||||
auto status = GraphExecutioner::execute(graph);
|
||||
ASSERT_EQ(Status::OK(), status);
|
||||
|
@ -119,8 +119,8 @@ TEST_F(PlaygroundTests, test_bert_1) {
|
|||
|
||||
auto array = graph->getVariableSpace()->getVariable(198)->getNDArray();
|
||||
ASSERT_EQ(z, *array);
|
||||
*/
|
||||
|
||||
/*
|
||||
nd4j::Environment::getInstance()->setProfiling(true);
|
||||
auto profile = GraphProfilingHelper::profile(graph, 1);
|
||||
|
||||
|
@ -128,7 +128,7 @@ TEST_F(PlaygroundTests, test_bert_1) {
|
|||
|
||||
nd4j::Environment::getInstance()->setProfiling(false);
|
||||
delete profile;
|
||||
|
||||
*/
|
||||
/*
|
||||
std::vector<Nd4jLong> values;
|
||||
|
||||
|
|
Loading…
Reference in New Issue