!15870 modify model_zoo textcnn net bug for clould

From: @Somnus2020
Reviewed-by: @c_34,@oacjiewen
Signed-off-by: @c_34
This commit is contained in:
mindspore-ci-bot 2021-05-06 19:38:41 +08:00 committed by Gitee
commit 6124e834e5
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ def eval_net():
if config.dataset == 'MR':
instance = MovieReview(root_dir=config.data_path, maxlen=config.word_len, split=0.9)
elif config.dataset == 'SUBJ':
instance = Subjectivity(root_dir=cfg.data_path, maxlen=cfg.word_len, split=0.9)
instance = Subjectivity(root_dir=config.data_path, maxlen=config.word_len, split=0.9)
elif config.dataset == 'SST2':
instance = SST2(root_dir=config.data_path, maxlen=config.word_len, split=0.9)
device_target = config.device_target

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
BASE_PATH=$(cd ./ "`dirname $0`" || exit; pwd)
BASE_PATH=$(dirname "$(dirname "$(readlink -f $0)")")
dataset_type='MR'
CONFIG_FILE="${BASE_PATH}/mr_config.yaml"
if [ $# == 2 ]

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
BASE_PATH=$(cd ./ "`dirname $0`" || exit; pwd)
BASE_PATH=$(dirname "$(dirname "$(readlink -f $0)")")
dataset_type='MR'
CONFIG_FILE="${BASE_PATH}/mr_config.yaml"
if [ $# == 1 ]