Commit 072fe644 authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

Bob/includes (#178)

* cleanup

* fix node includes
parent df4d436f
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#pragma once #pragma once
#include <memory>
namespace ngraph namespace ngraph
{ {
namespace descriptor namespace descriptor
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/descriptor/input.hpp"
#include "ngraph/descriptor/output.hpp"
using namespace std;
using namespace ngraph; using namespace ngraph;
using namespace descriptor; using namespace descriptor;
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#pragma once #pragma once
#include <cstddef>
#include <vector> #include <vector>
#include "ngraph/descriptor/buffer.hpp" #include "ngraph/descriptor/buffer.hpp"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#pragma once #pragma once
#include <memory>
#include <tuple> #include <tuple>
#include <vector> #include <vector>
......
...@@ -12,11 +12,12 @@ ...@@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/descriptor/output.hpp"
#include "ngraph/descriptor/input.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
using namespace descriptor; using namespace ngraph::descriptor;
Output::Output(const std::shared_ptr<Node>& node, Output::Output(const std::shared_ptr<Node>& node,
size_t index, size_t index,
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <set> #include <set>
#include "ngraph/descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
#include "ngraph/node.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -22,17 +22,13 @@ ...@@ -22,17 +22,13 @@
#include <iostream> #include <iostream>
#include "ngraph/common.hpp" #include "ngraph/common.hpp"
#include "ngraph/descriptor/input.hpp"
#include "ngraph/descriptor/output.hpp"
#include "ngraph/descriptor/tensor.hpp"
#include "ngraph/types/type.hpp" #include "ngraph/types/type.hpp"
namespace ngraph namespace ngraph
{ {
namespace descriptor
{
class Input;
class Output;
class Tensor;
}
/// Nodes are the backbone of the graph of Value dataflow. Every node has /// Nodes are the backbone of the graph of Value dataflow. Every node has
/// zero or more nodes as arguments and one value, which is either a tensor /// zero or more nodes as arguments and one value, which is either a tensor
/// view or a (possibly empty) tuple of values. /// view or a (possibly empty) tuple of values.
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/op.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <memory> #include <memory>
#include "ngraph/log.hpp" #include "ngraph/log.hpp"
#include "ngraph/ngraph.hpp" #include "ngraph/ops/op.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/op.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/broadcast.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/concatenate.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/constant.hpp"
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <sstream> #include <sstream>
#include "ngraph/node.hpp"
#include "ngraph/runtime/utils.hpp" #include "ngraph/runtime/utils.hpp"
#include "ngraph/types/element_type.hpp" #include "ngraph/types/element_type.hpp"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/convert.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/dot.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/function_call.hpp"
#include "ngraph/pass/topological_sort.hpp" #include "ngraph/function.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#pragma once #pragma once
#include "ngraph/pass/manager.hpp" #include "ngraph/ops/op.hpp"
#include "ngraph/pass/propagate_types.hpp" #include "ngraph/pass/propagate_types.hpp"
namespace ngraph namespace ngraph
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/op.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <sstream> #include <sstream>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/parameter.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph/ngraph.hpp" #include "ngraph/ops/reduce.hpp"
#include "ngraph/pass/topological_sort.hpp" #include "ngraph/function.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <memory> #include <memory>
#include "ngraph/log.hpp" #include "ngraph/log.hpp"
#include "ngraph/ngraph.hpp" #include "ngraph/ops/select.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/tuple.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#pragma once #pragma once
#include "ngraph/ops/op.hpp"
namespace ngraph namespace ngraph
{ {
namespace op namespace op
......
...@@ -12,11 +12,8 @@ ...@@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include <memory> #include "ngraph/ops/op.hpp"
#include "ngraph/ngraph.hpp"
using namespace std;
using namespace ngraph; using namespace ngraph;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph/ngraph.hpp" #include "ngraph/ops/op.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -22,7 +22,6 @@ namespace ngraph ...@@ -22,7 +22,6 @@ namespace ngraph
{ {
class AssignTensors; class AssignTensors;
} }
class Node;
} }
class ngraph::pass::AssignTensors : public CallGraphPass class ngraph::pass::AssignTensors : public CallGraphPass
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
#include <fstream> #include <fstream>
#include "ngraph/ngraph.hpp" #include "ngraph/descriptor/input.hpp"
#include "ngraph/descriptor/output.hpp"
#include "ngraph/pass/dump_sorted.hpp" #include "ngraph/pass/dump_sorted.hpp"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
......
...@@ -24,7 +24,6 @@ namespace ngraph ...@@ -24,7 +24,6 @@ namespace ngraph
{ {
class DumpSorted; class DumpSorted;
} }
class Node;
} }
class ngraph::pass::DumpSorted : public ModulePass class ngraph::pass::DumpSorted : public ModulePass
......
...@@ -16,9 +16,10 @@ ...@@ -16,9 +16,10 @@
#include <sstream> #include <sstream>
#include <unordered_set> #include <unordered_set>
#include "ngraph/descriptor/input.hpp"
#include "ngraph/descriptor/output.hpp"
#include "ngraph/log.hpp" #include "ngraph/log.hpp"
#include "ngraph/log.hpp" #include "ngraph/node.hpp"
#include "ngraph/ngraph.hpp"
#include "ngraph/pass/assign_tensors.hpp" #include "ngraph/pass/assign_tensors.hpp"
#include "ngraph/pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
......
...@@ -23,7 +23,6 @@ namespace ngraph ...@@ -23,7 +23,6 @@ namespace ngraph
{ {
class Liveness; class Liveness;
} }
class Node;
} }
class ngraph::pass::Liveness : public CallGraphPass class ngraph::pass::Liveness : public CallGraphPass
......
...@@ -28,9 +28,6 @@ namespace ngraph ...@@ -28,9 +28,6 @@ namespace ngraph
class Manager; class Manager;
class ManagerState; class ManagerState;
} }
class Node;
class Function;
} }
class ngraph::pass::Manager class ngraph::pass::Manager
......
...@@ -17,15 +17,14 @@ ...@@ -17,15 +17,14 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "ngraph/function.hpp"
namespace ngraph namespace ngraph
{ {
namespace pass namespace pass
{ {
class ManagerState; class ManagerState;
} }
class Node;
class Function;
} }
class ngraph::pass::ManagerState class ngraph::pass::ManagerState
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "ngraph/log.hpp" #include "ngraph/log.hpp"
#include "ngraph/log.hpp" #include "ngraph/log.hpp"
#include "ngraph/ngraph.hpp"
#include "ngraph/pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "ngraph/pass/manager.hpp" #include "ngraph/pass/manager.hpp"
#include "ngraph/pass/memory_layout.hpp" #include "ngraph/pass/memory_layout.hpp"
......
...@@ -28,7 +28,6 @@ namespace ngraph ...@@ -28,7 +28,6 @@ namespace ngraph
class MemoryNode; class MemoryNode;
class MemoryManager; class MemoryManager;
} }
class Node;
} }
class ngraph::pass::MemoryLayout : public CallGraphPass class ngraph::pass::MemoryLayout : public CallGraphPass
......
...@@ -26,7 +26,6 @@ namespace ngraph ...@@ -26,7 +26,6 @@ namespace ngraph
{ {
class MemoryVisualize; class MemoryVisualize;
} }
class Node;
} }
class ngraph::pass::MemoryVisualize : public ModulePass class ngraph::pass::MemoryVisualize : public ModulePass
......
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "ngraph/function.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/pass/manager_state.hpp"
namespace ngraph namespace ngraph
{ {
...@@ -30,9 +32,7 @@ namespace ngraph ...@@ -30,9 +32,7 @@ namespace ngraph
class NodePass; class NodePass;
class CallGraphPass; class CallGraphPass;
class Manager; class Manager;
class ManagerState;
} }
class Function;
} }
class ngraph::pass::PassBase class ngraph::pass::PassBase
......
...@@ -22,7 +22,6 @@ namespace ngraph ...@@ -22,7 +22,6 @@ namespace ngraph
{ {
class PropagateTypes; class PropagateTypes;
} }
class Node;
} }
class ngraph::pass::PropagateTypes : public CallGraphPass class ngraph::pass::PropagateTypes : public CallGraphPass
......
...@@ -25,7 +25,6 @@ namespace ngraph ...@@ -25,7 +25,6 @@ namespace ngraph
{ {
class TopologicalSort; class TopologicalSort;
} }
class Node;
} }
class ngraph::pass::TopologicalSort : public FunctionPass class ngraph::pass::TopologicalSort : public FunctionPass
......
...@@ -26,7 +26,6 @@ namespace ngraph ...@@ -26,7 +26,6 @@ namespace ngraph
{ {
class VisualizeTree; class VisualizeTree;
} }
class Node;
} }
class ngraph::pass::VisualizeTree : public ModulePass class ngraph::pass::VisualizeTree : public ModulePass
......
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