Skip to content

Commit

Permalink
PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgk committed Apr 12, 2022
1 parent f3ddb85 commit 7f4eb74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions api/src/main/java/ai/djl/nn/AbstractBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public abstract class AbstractBlock extends AbstractBaseBlock {
protected LinkedHashMap<String, Parameter> parameters = new LinkedHashMap<>();

/** Constructs a new {@code AbstractBlock} instance. */
public AbstractBlock() {
super();
}
public AbstractBlock() {}

/**
* Builds an empty block with the given version for parameter serialization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public PairList<String, Shape> describeInput() {
return inputDescriptions;
}

/** {@inheritDoc} */
@Override
public ParameterList getDirectParameters() {
return new ParameterList(parameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public PairList<String, Shape> describeInput() {
return inputDescriptions;
}

/** {@inheritDoc} */
@Override
public ParameterList getDirectParameters() {
if (parameters == null) {
Expand Down

0 comments on commit 7f4eb74

Please sign in to comment.