Skip to content

Commit

Permalink
Review diff, remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
solrex committed Feb 4, 2017
1 parent f4e4284 commit 312dbca
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 1,036 deletions.
8 changes: 0 additions & 8 deletions include/caffe/filler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class ConstantFiller : public Filler<Dtype> {
}
};

#ifdef NO_CAFFE_MOBILE
/// @brief Fills a Blob with uniformly distributed values @f$ x\sim U(a, b) @f$.
template <typename Dtype>
class UniformFiller : public Filler<Dtype> {
Expand Down Expand Up @@ -124,7 +123,6 @@ class PositiveUnitballFiller : public Filler<Dtype> {
<< "Sparsity not supported by this Filler.";
}
};
#endif

/**
* @brief Fills a Blob with values @f$ x \sim U(-a, +a) @f$ where @f$ a @f$ is
Expand Down Expand Up @@ -167,7 +165,6 @@ class XavierFiller : public Filler<Dtype> {
}
};

#ifdef NO_CAFFE_MOBILE
/**
* @brief Fills a Blob with values @f$ x \sim N(0, \sigma^2) @f$ where
* @f$ \sigma^2 @f$ is set inversely proportional to number of incoming
Expand Down Expand Up @@ -263,7 +260,6 @@ class BilinearFiller : public Filler<Dtype> {
<< "Sparsity not supported by this Filler.";
}
};
#endif

/**
* @brief Get a specific filler from the specification given in FillerParameter.
Expand All @@ -276,22 +272,18 @@ Filler<Dtype>* GetFiller(const FillerParameter& param) {
const std::string& type = param.type();
if (type == "constant") {
return new ConstantFiller<Dtype>(param);
#ifdef NO_CAFFE_MOBILE
} else if (type == "gaussian") {
return new GaussianFiller<Dtype>(param);
} else if (type == "positive_unitball") {
return new PositiveUnitballFiller<Dtype>(param);
} else if (type == "uniform") {
return new UniformFiller<Dtype>(param);
#endif
} else if (type == "xavier") {
return new XavierFiller<Dtype>(param);
#ifdef NO_CAFFE_MOBILE
} else if (type == "msra") {
return new MSRAFiller<Dtype>(param);
} else if (type == "bilinear") {
return new BilinearFiller<Dtype>(param);
#endif
} else {
CHECK(false) << "Unknown filler name: " << param.type();
}
Expand Down
Loading

0 comments on commit 312dbca

Please sign in to comment.