Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

add a checked parameter type in _maybe_load_yaml()#293

Open
williamjqk wants to merge 1 commit intogoogle:masterfrom
williamjqk:studynon-patch-1
Open

add a checked parameter type in _maybe_load_yaml()#293
williamjqk wants to merge 1 commit intogoogle:masterfrom
williamjqk:studynon-patch-1

Conversation

@williamjqk
Copy link

@williamjqk williamjqk commented Aug 31, 2017

In the examples of the official manual, there are some examples whose parameters maybe passed in as a list of dicts.
e.g. the "tasks" parameter in the following example,
In https://google.github.io/seq2seq/nmt/#decoding-with-beam-search,

python -m bin.infer \
  --tasks "
    - class: DecodeText
    - class: DumpBeams
      params:
        file: ${PRED_DIR}/beams.npz" \
  --model_dir $MODEL_DIR \
  --model_params "
    inference.beam_search.beam_width: 5" \
  --input_pipeline "
    class: ParallelTextInputPipeline
    params:
      source_files:
        - $DEV_SOURCES" \
  > ${PRED_DIR}/predictions.txt

In the examples of the official manual, there are some examples whose parameters maybe passed in as a list of dicts. 
e.g. the "tasks" parameter in the following example, 
In https://google.github.io/seq2seq/nmt/#decoding-with-beam-search,
python -m bin.infer \
  --tasks "
    - class: DecodeText
    - class: DumpBeams
      params:
        file: ${PRED_DIR}/beams.npz" \
  --model_dir $MODEL_DIR \
  --model_params "
    inference.beam_search.beam_width: 5" \
  --input_pipeline "
    class: ParallelTextInputPipeline
    params:
      source_files:
        - $DEV_SOURCES" \
  > ${PRED_DIR}/predictions.txt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant