Skip to content

Optimisation - Removed a lot of garbage allocation #1804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Convert InferenceBrain to use IReadOnlyList to avoid garbage creation.
  • Loading branch information
tkggwatson committed Mar 18, 2019
commit 30bc0ffa7fad154c5135beadd17a4bac4f32db40
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private BarracudaModelParamLoader(IWorker engine, Model model, BrainParameters b
/// Generates the Tensor inputs that are expected to be present in the Model.
/// </summary>
/// <returns>Tensor IEnumerable with the expected Tensor inputs</returns>
public IEnumerable<Tensor> GetInputTensors()
public IReadOnlyList<Tensor> GetInputTensors()
{
List<Tensor> tensors = new List<Tensor>();

Expand Down