Skip to content

Commit

Permalink
[api] Makes PredictorContext constructor public (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored May 5, 2023
1 parent b7806f7 commit c27481b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/main/java/ai/djl/inference/Predictor.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ protected class PredictorContext implements TranslatorContext {
private NDManager ctxManager;
private Map<String, Object> attachments;

protected PredictorContext() {
/** Constructs a new {@code PredictorContext} instance. */
public PredictorContext() {
ctxManager = manager.newSubManager();
ctxManager.setName("predictor ctx");
attachments = new ConcurrentHashMap<>();
Expand Down

0 comments on commit c27481b

Please sign in to comment.