Skip to content

Conversation

rkazants
Copy link
Collaborator

@rkazants rkazants commented Jul 21, 2025

Details: For second generation or so, we need to reset performance metrics. Now it is accumulating that is not correct.

Ticket: 170874

@rkazants rkazants added this to the 2025.3 milestone Jul 21, 2025
@rkazants rkazants requested review from Wovchena and sbalandi July 21, 2025 11:40
@Wovchena Wovchena requested a review from Copilot July 21, 2025 11:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes performance metrics accumulation in the SpeechT5 TTS model by ensuring metrics are properly reset for each generation call instead of accumulating across multiple generations.

  • Changes performance metrics to be stored in the local result object instead of the class member
  • Ensures metrics are reset for each generation call by using fresh result object metrics
  • Updates the class member metrics only at the end with the current generation's metrics

m_perf_metrics.evaluate_statistics();
gen_speech_res.perf_metrics = m_perf_metrics;
gen_speech_res.perf_metrics.evaluate_statistics();
m_perf_metrics = gen_speech_res.perf_metrics;
Copy link
Preview

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider whether updating the class member m_perf_metrics is necessary. If this is only used for external access to the last generation's metrics, consider documenting this behavior or removing the assignment if the metrics are only needed in the return value.

Copilot uses AI. Check for mistakes.

@rkazants rkazants enabled auto-merge July 21, 2025 11:55
@rkazants rkazants added this pull request to the merge queue Jul 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 21, 2025
@rkazants rkazants merged commit 294be89 into openvinotoolkit:master Jul 22, 2025
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants