mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: This will support another round of migration from hand-written configs to code generation. Pull Request resolved: https://github.com/pytorch/pytorch/pull/38496 Differential Revision: D21581624 Pulled By: kostmo fbshipit-source-id: aed814ef6d4fc6af9ce092727b2dacc99de14ae0
16 lines
270 B
Bash
Executable File
16 lines
270 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
YAML_FILENAME=$1
|
|
|
|
# Allows this script to be invoked from any directory:
|
|
cd $(dirname "$0")
|
|
|
|
pushd ..
|
|
|
|
TEMP_FILENAME=$(mktemp)
|
|
|
|
cat $YAML_FILENAME | ./codegen_validation/normalize_yaml_fragment.py > $TEMP_FILENAME
|
|
mv $TEMP_FILENAME $YAML_FILENAME
|
|
|
|
popd
|