Skip to content

Commit

Permalink
Update checkstyle tool version to 10.14.2 (#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Mar 28, 2024
1 parent 091a41c commit 5eb2b9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public NDArray greedySearch(NDArray inputIds) throws TranslateException {
* Generates text using beam search.
*
* @param inputIds input tokens ids
* @see <a href="https://huggingface.co/blog/how-to-generate">Beam Search</a>
* @return the output token ids stored as NDArray and the endPosition of each sentence
* @throws TranslateException if failed run forward
* @see <a href="https://huggingface.co/blog/how-to-generate">Beam Search</a>
*/
@SuppressWarnings("try")
public NDArray beamSearch(NDArray inputIds) throws TranslateException {
Expand Down Expand Up @@ -261,9 +261,9 @@ public NDArray beamSearch(NDArray inputIds) throws TranslateException {
* Generates text using contrastive search.
*
* @param inputIds input token ids
* @see <a href="https://huggingface.co/blog/introducing-csearch">Contrastive Search</a>
* @return the output token ids stored as NDArray
* @throws TranslateException if forward failed
* @see <a href="https://huggingface.co/blog/introducing-csearch">Contrastive Search</a>
*/
@SuppressWarnings("try")
public NDArray contrastiveSearch(NDArray inputIds) throws TranslateException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
package ai.djl.training.tracker;

import ai.djl.training.tracker.WarmUpTracker.Builder;
import ai.djl.util.Preconditions;

/**
Expand Down
5 changes: 2 additions & 3 deletions tools/conf/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
value="Override, Test, Before, After, BeforeClass, AfterClass"/>
</module>
-->
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InnerTypeLast"/>
<!--
Expand Down Expand Up @@ -284,8 +283,8 @@
<!-- Javadoc Comments -->
<module name="AtclauseOrder"/>
<module name="JavadocMethod">
<property name="allowUndeclaredRTE" value="true"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
</module>
<module name="JavadocParagraph"/>
<module name="JavadocStyle">
Expand Down
2 changes: 1 addition & 1 deletion tools/gradle/check.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks.withType(Pmd) {

apply plugin: "checkstyle"
checkstyle {
toolVersion = "8.26"
toolVersion = "10.14.2"
ignoreFailures = false
checkstyleTest.enabled = true
configProperties = [
Expand Down

0 comments on commit 5eb2b9e

Please sign in to comment.