File size: 564 Bytes
664a799
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /usr/bin/env bash

function fashion_mnist() {
    local task=$(abcli_unpack_keyword $1 help)

    if [ $task == "help" ] ; then
        abcli_help_line "fashion_mnist task_1" \
            "run fashion_mnist task_1."

        if [ "$(abcli_keyword_is $2 verbose)" == true ] ; then
            python3 -m fashion_mnist --help
        fi

        return
    fi

    if [ "$task" == "task_1" ] ; then
        python3 -m fashion_mnist \
            task_1 \
            ${@:2}
        return
    fi

    abcli_log_error "-fashion_mnist: $task: command not found."
}