Commit c54569a8 authored by Benjamin Thomas Graham's avatar Benjamin Thomas Graham
Browse files

tidy

parent 43d4e998
...@@ -193,7 +193,6 @@ void blRules(SparseGrids<dimension> &SGs, RuleBook &rules, long *coords, ...@@ -193,7 +193,6 @@ void blRules(SparseGrids<dimension> &SGs, RuleBook &rules, long *coords,
rule.resize((maxActive + 1) * nActive); rule.resize((maxActive + 1) * nActive);
#pragma omp parallel for private(I) #pragma omp parallel for private(I)
for (I = 0; I < batchSize; I++) { for (I = 0; I < batchSize; I++) {
std::cout << omp_get_num_threads() << "\n";
auto &ors = outputRows[I]; auto &ors = outputRows[I];
auto rr = &rule[SGs[I].ctr * (maxActive + 1)]; auto rr = &rule[SGs[I].ctr * (maxActive + 1)];
for (auto &row : ors) { for (auto &row : ors) {
......
...@@ -19,7 +19,7 @@ class NetworkInNetworkFunction(Function): ...@@ -19,7 +19,7 @@ class NetworkInNetworkFunction(Function):
weight, weight,
bias): bias):
output_features = input_features.new() output_features = input_features.new()
ctx.save_forbackwards(input_features, ctx.save_for_backward(input_features,
output_features, output_features,
weight, weight,
bias) bias)
...@@ -67,8 +67,7 @@ class NetworkInNetwork(Module): ...@@ -67,8 +67,7 @@ class NetworkInNetwork(Module):
0, 0,
std)) std))
if bias: if bias:
self.bias = Parameter(torch.Tensor(nOut). self.bias = Parameter(torch.Tensor(nOut).zero_())
_())
else: else:
self.bias = None self.bias = None
......
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