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