Skip to content

Instantly share code, notes, and snippets.

@reyoung
Last active July 2, 2018 05:11
Show Gist options
  • Save reyoung/a302264c77ec4f1450b23a4ad72505ac to your computer and use it in GitHub Desktop.
Save reyoung/a302264c77ec4f1450b23a4ad72505ac to your computer and use it in GitHub Desktop.
for line in (cat replaces)
set origin (echo $line | cut -f 1 -d ' ')
set replace (echo $line | cut -f 2 -d ' ')
sed -i "s#:ref:`$origin`#:code:`$replace`#g" (find . -name '*.rst' -type f)
end
api_fluid_default_main_program fluid.default_main_program()
api_fluid_default_startup_program fluid.default_startup_program()
api_fluid_Executor fluid.Executor()
api_fluid_global_scope fluid.global_scope()
api_fluid_io_save_checkpoint fluid.io.save_checkpiont()
api_fluid_io_save_params fluid.io.save_params()
api_fluid_layers fluid.layers
api_fluid_layers_batch fluid.layers.batch()
api_fluid_layers_data fluid.layers.data()
api_fluid_layers_double_buffer fluid.layers.double_buffer()
api_fluid_layers_open_files fluid.layers.open_files()
api_fluid_layers_Preprocessor fluid.layers.Preprocessor
api_fluid_layers_read_file fluid.layers.read_file
api_fluid_layers_shuffle fluid.layers.shuffle()
api_fluid_optimizer fluid.optimizer()
api_fluid_ParallelExecutor fluid.ParallelExecutor
api_fluid_Program fluid.Program
api_fluid_recordio_writer_convert_reader_to_recordio_file fluid.recordio_writer.convert_reader_to_recordio_file()
api_fluid_recordio_writer_convert_reader_to_recordio_files fluid.recordio_writer.convert_reader_to_recordio_files()
api_fluid_Variable fluid.Variable()
api_guide_executor fluid.Executor
api_guide_lod_tensor fluid.LoDTensor
api_guide_parallel_executor fluid.ParallelExecutor
api_guide_reader fluid.layers.reader
api_guide_recordio_file_format fluid.recordio_writer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment