Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add fixes on scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Oct 5, 2018
1 parent 4eb54a8 commit 98a846f
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions scala-package/examples/scripts/benchmark/run_text_charrnn_bm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,30 @@

set -e

hw_type=cpu
if [ "$1" = "gpu" ]
then
hw_type=gpu
fi

platform=linux-x86_64

if [ "$OSTYPE" == "darwin"* ]
then
platform=osx-x86_64
fi

MXNET_ROOT=$(cd "$(dirname $0)/../../../.."; pwd)
CLASS_PATH=$MXNET_ROOT/scala-package/assembly/osx-x86_64-cpu/target/*:$MXNET_ROOT/scala-package/examples/target/*:$MXNET_ROOT/scala-package/examples/target/classes/lib/*:$MXNET_ROOT/scala-package/infer/target/*
CLASS_PATH=$MXNET_ROOT/scala-package/assembly/$platform-$hw_type/target/*:$MXNET_ROOT/scala-package/examples/target/*:$MXNET_ROOT/scala-package/examples/target/classes/lib/*:$MXNET_ROOT/scala-package/infer/target/*

MODEL_NAME=$1
MODEL_NAME=$2

RUNS=$2
RUNS=$3

# model dir
MODEL_PATH_PREFIX=$3
MODEL_PATH_PREFIX=$4
# input image
DATA_PATH=$4
DATA_PATH=$5

# feel free to change the starter sentence
STARTER_SENTENCE="The joke"
Expand Down

0 comments on commit 98a846f

Please sign in to comment.