Skip to content

Coding guidelines

Hongkun Yu edited this page May 5, 2020 · 5 revisions

TensorFlow Model Garden aims to provide reliable state-of-the-art machine learning models to demonstrate best practices in TensorFlow 2 and illustrate end-to-end real-world use cases.

Your code should follow our guidelines to uphold our objectives of readable, usable, and maintainable code.

We provide the following principles and coding guidelines to ensure simple and readable code with high-quality models in the Model Garden.

What to do

Note: Exceptions can be made case by case basis.

What NOT to do

  • Any code changes that harm usability
  • Any complicated custom training loop implementations

Code examples and templates

  • Code examples and templates will be provided here soon.