Skip to content

Commit

Permalink
[ML] Fix parsing of pytorch thread settings
Browse files Browse the repository at this point in the history
During elastic#86277 an error was introduced in parsing of pytorch
thread settings. This commit fixes the issue.
  • Loading branch information
dimitris-athanasiou committed Jun 8, 2022
1 parent 3392f61 commit 1ebc914
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

public record ThreadSettings(int numThreadsPerAllocation, int numAllocations, String requestId) implements ToXContentObject {

private static final ParseField NUM_ALLOCATIONS = new ParseField("num_threads_per_allocation");
private static final ParseField NUM_THREADS_PER_ALLOCATION = new ParseField("num_allocations");
private static final ParseField NUM_ALLOCATIONS = new ParseField("num_allocations");
private static final ParseField NUM_THREADS_PER_ALLOCATION = new ParseField("num_threads_per_allocation");

public static ConstructingObjectParser<ThreadSettings, Void> PARSER = new ConstructingObjectParser<>(
"thread_settings",
Expand Down

0 comments on commit 1ebc914

Please sign in to comment.