forked from mindspore-Ecosystem/mindspore
!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:
commit
6124e834e5
|
@ -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
|
||||
|
|
|
@ -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 ]
|
||||
|
|
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue