question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix TFRS v0.4.0 dependency on TF

See original GitHub issue

Noticing that in requirements.txt, it says:

tensorflow >= 2.3.0

however in setup.py it says:

REQUIRED_PACKAGES = [
    "absl-py >= 0.1.6",
    "tensorflow == 2.4.*",
]

The latter is on master however; on 0.4.0 it says:

REQUIRED_PACKAGES = [
    "absl-py >= 0.1.6",
    "tensorflow == 2.4",
]

It seems to me that the requirements and the required packages are somewhat at odds with each other. >= 2.3.0 vs. ==2.4.* seems not quite a full match and perhaps a source of user confusion.

Also, the 2.4.* is a recent thing; it’s not in the 0.4.0 release.

If you install TF 2.4.1 first then TFRS, the TFRS install may wipe out TF 2.4.1 and install TF 2.4.0 instead. Which may be a surprise if your code is using something like the MultiWorkerMirroredStrategy which is in TF 2.4.1 but not 2.4.0.

If you then install TFRS 0.4.0 first then TF 2.4.1 you get what looks like a non-fatal error from pip3:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-recommenders 0.4.0 requires tensorflow==2.4, but you have tensorflow 2.4.1 which is incompatible.

“Non-fatal” because TF 2.4.1 is installed anyway; so this seems more of a warning than a true error.

I’m not sure what, if anything could or should be changed. Thought I’d jot this down as more of an item for folks to comment on.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
maciejkulacommented, Apr 23, 2021

Thanks for reporting this issue - I’ll be cutting a release next week and this will change to TF 2.4., then eventually to TF 2.5. once we update ScaNN.

0reactions
maciejkulacommented, Sep 13, 2021

The original issue should now be fixed, and the requirements should be aligned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recommending Movies: Recommender Models in TFX
This is a port of a basic TensorFlow Recommenders (TFRS) tutorial to TFX, which is designed to demonstrate how to use TFRS in...
Read more >
Gruntwork Newsletter, Summer 2021 | by Amanda Ohmer
50.8: Fixed a bug where eks-cluster errors out when trying to lookup IAM role for Managed Node Groups or Self Managed Workers after...
Read more >
Correcting for Cross-Sectional and Time-Series Dependence ...
literature to correct for cross-sectional and time-series dependence. While much of the accounting literature studies settings in which variables are ...
Read more >
How to use Terragrunt? - Jhooq
(At the time of writing this blog post v0.37.1 was the latest ... Source URI - "tfr:///terraform-aws-modules/ec2-instance/aws?version=4.0.0".
Read more >
Federal Aviation Administration - Graphic TFR's
Date NOTAM Facility State Type 12/21/2022 2/8274 ZMP MN HAZARDS 12/21/2022 2/8126 ZHN HI HAZARDS 12/20/2022 2/8103 ZKC KS HAZARDS
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found