Skip to content

Commit

Permalink
[ML] Fix parsing of pytorch thread settings (#87525)
Browse files Browse the repository at this point in the history
During #86277 an error was introduced in parsing of pytorch
thread settings. This commit fixes the issue.
  • Loading branch information
dimitris-athanasiou authored Jun 9, 2022
1 parent ea5554d commit 5673c6f
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 5673c6f

Please sign in to comment.