国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
from typing import Union, Dict | |
import pandas as pd | |
from torchtext.data import (Field, Example, Iterator, BucketIterator, Dataset) | |
from tqdm import tqdm | |
class DataFrameExampleSet: | |
def __init__(self, df: pd.DataFrame, fields: Dict[str, Field]): | |
self._df = df |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+