Skip to content

Commit b68d22d

Browse files
committed
Cleanup the code for some of the test binaries. Remove unused headers. NFC.
1 parent b9f0d39 commit b68d22d

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

examples/cifar10.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
#include "glow/ExecutionEngine/ExecutionEngine.h"
22
#include "glow/Graph/Graph.h"
3-
#include "glow/Graph/Nodes.h"
4-
#include "glow/IR/IR.h"
5-
#include "glow/IR/IRBuilder.h"
6-
#include "glow/IR/Instrs.h"
73
#include "glow/Support/Support.h"
84

95
#include "llvm/Support/Timer.h"
106

117
#include <cassert>
12-
#include <cstddef>
13-
#include <cstdint>
148
#include <fstream>
159
#include <iostream>
16-
#include <iterator>
17-
#include <random>
18-
#include <string>
19-
#include <vector>
2010

2111
using namespace glow;
2212

@@ -100,7 +90,7 @@ void testCIFAR10() {
10090
auto *SM = G.createSoftMax("softmax", RL3, E);
10191
auto *result = G.createReturn("ret", SM);
10292

103-
EE.getModule().generateIR();
93+
EE.generateIR();
10494
EE.optimize(OptimizationMode::Train);
10595
EE.initVars();
10696

examples/mnist.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
#include "llvm/Support/Timer.h"
66

77
#include <cassert>
8-
#include <cstddef>
9-
#include <cstdint>
108
#include <fstream>
119
#include <iostream>
12-
#include <string>
13-
#include <vector>
1410

1511
using namespace glow;
1612

tools/loader/loader.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
#include "glow/Base/Image.h"
44
#include "glow/Base/Tensor.h"
55
#include "glow/ExecutionEngine/ExecutionEngine.h"
6-
#include "glow/Graph/Graph.h"
7-
#include "glow/Graph/Nodes.h"
86
#include "glow/Importer/Caffe2.h"
9-
#include "glow/Interpreter/Interpreter.h"
7+
8+
#include <iostream>
109

1110
using namespace glow;
1211

0 commit comments

Comments
 (0)