Skip to content

Commit

Permalink
Finished / cleaned up accidental refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lolz0r committed Aug 14, 2015
1 parent bf2704c commit 51cd767
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/makeTensorStream.cpp
Expand Up @@ -51,14 +51,9 @@ int main ( int argc, char** argv ) {

unsigned int number_of_classes = dataset->GetClasses();
// arrays to store class colors in an easy to index way
Conv::datum* cr = NULL;
Conv::datum* cg = NULL;
Conv::datum* cb = NULL;

// if there are classes cache their colors
cr = new Conv::datum[number_of_classes];
cg = new Conv::datum[number_of_classes];
cb = new Conv::datum[number_of_classes];
Conv::datum* cr = new Conv::datum[number_of_classes];
Conv::datum* cg = new Conv::datum[number_of_classes];
Conv::datum* cb = new Conv::datum[number_of_classes];

for ( unsigned int c = 0; c < number_of_classes; c++ ) {
const unsigned int class_color = dataset->GetClassColors() [c];
Expand Down

0 comments on commit 51cd767

Please sign in to comment.