Skip to content

Commit

Permalink
Fix progress monitors.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Oct 16, 2023
1 parent 2787b11 commit 4e38b13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat

// Find out if it's hybrid via the tf.function decorator.
try {
func.computeHybridization(monitor);
func.computeHybridization(subMonitor.split(IProgressMonitor.UNKNOWN));
} catch (BadLocationException e) {
throw new CoreException(Status.error("Could not compute hybridization for: : " + func, e));
}

// TODO: Whether a function has a tensor argument should probably be an initial
// condition: functions w/o such arguments should not be candidates.
try {
func.inferTensorTensorParameters(analysis, monitor);
func.inferTensorTensorParameters(analysis, subMonitor.split(IProgressMonitor.UNKNOWN));
} catch (BadLocationException e) {
throw new CoreException(Status.error("Could not infer tensor parameters for: : " + func, e));
}
Expand Down

0 comments on commit 4e38b13

Please sign in to comment.