Skip to content
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

Add precision inherition for when generating stream clone #911

Merged
merged 8 commits into from
Dec 13, 2023

Conversation

calad0i
Copy link
Contributor

@calad0i calad0i commented Nov 5, 2023

A# Description

Based on #906
When creating cloned streams, use the precision of the stream being cloned. Currently, the precision is model_default without any special tweak.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Tests

test/pytest/test_stream_clone.py

Merged with tests from #906.

Checklist

  • I have read the guidelines for contributing.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have installed and run pre-commit on the files I edited or added.
  • I have added tests that prove my fix is effective or that my feature works.

@calad0i calad0i mentioned this pull request Nov 7, 2023
7 tasks
@vloncar vloncar added this to the v0.8.1 milestone Nov 10, 2023
@jmitrevs jmitrevs added the please test Trigger testing by creating local PR branch label Nov 27, 2023
@jmitrevs jmitrevs added please test Trigger testing by creating local PR branch and removed please test Trigger testing by creating local PR branch labels Dec 4, 2023
@@ -22,3 +22,8 @@ def reseed(newseed):
torch.manual_seed(newseed)
except ImportError:
print('\nPyTorch seed not set')
seed = 42
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is leftover code from testing

@@ -22,3 +24,5 @@ def reseed(newseed):
torch.manual_seed(newseed)
except ImportError:
print('\nPyTorch seed not set')

os.environ['RANDOM_SEED'] = f'{newseed}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to set the environment variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I have been using these lines since a while ago, but it seems they are not doing anything, at least with recent versions of tensorflows.

@jmitrevs jmitrevs added please test Trigger testing by creating local PR branch and removed please test Trigger testing by creating local PR branch labels Dec 12, 2023
@jmitrevs jmitrevs merged commit 781c401 into fastmachinelearning:main Dec 13, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please test Trigger testing by creating local PR branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants