Skip to content

Performance optimization, refactoring and revamping. #366

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 58 commits into from
Aug 28, 2019
Merged

Conversation

Nucs
Copy link
Member

@Nucs Nucs commented Aug 28, 2019

@Oceania2018 Please review these changes to ensure I did not break anything I did not know of.
All unit tests pass. We still have the issue with shared static unit-tests.
I do plan to change our testing framework to NUnit as it allows isolation of unit-tests from one another.
Examples result the same as master branch before my changes.

Notable changes:

  • All classses that inherit DisposableObject, their use cases has been reviewed and changed accordingly to allow GC decide when they are disposable.
  • Heavy performance optimization (all mentioned in the commits)
  • Revamp/rewrite of Buffer, Status and BaseSession

Breaking changes:

  • public static implicit operator byte[](Buffer buffer) has been changed to explicit
    motivation: having such cast implicit might imply to the developer that it has no performance cost.

Nucs and others added 30 commits August 21, 2019 15:53
- Added supported_numericals_TF_DataType
- Cleanup and docs to all Tensor.cs files
- Changed all uses of System.Convert to NumSharp.Utilities.Converts
- Added all missing types in dtypes.cs
- Renamed tensor.Data<T> to tensor.ToArray<T>, added obsolete message
- Renamed tensor.Data() to tensor.BufferToArray(), added obsolete message
- Made GraphKeys to use const string instead allocating strings at every use of GraphKeys.
- Fixed all locations _dtype is used incorrectly.
@Nucs Nucs added the enhancement New feature or request label Aug 28, 2019
@Nucs Nucs requested a review from Oceania2018 August 28, 2019 07:24
@Oceania2018 Oceania2018 merged commit af73e3c into master Aug 28, 2019
@Nucs Nucs deleted the perf-ops branch August 30, 2019 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants