INNER CODE UNIT · Python

Formatter

tensorflow/docs · tools/tensorflow_docs/api_generator/gen_java/__init__.py:27

class Formatter(yaml.dumper.Dumper):
  pass


def _dict_representer(dumper, data):
  """Force yaml to output dictionaries in order, not alphabetically."""
  return dumper.represent_dict(data.items())


Formatter.add_representer(dict, _dict_representer)

# __file__ is the path to this file
GEN_JAVA_DIR = pathlib.Path(__file__).resolve().parent

TEMPLATES = GEN_JAVA_DIR / 'templates'
DOCLAVA_FOR_TF = GEN_JAVA_DIR / 'run-javadoc-for-tf.sh'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…