Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c824d15a
Commit
c824d15a
authored
Dec 22, 2019
by
Aymeric Augustin
Browse files
Remove __future__ imports.
parent
b6ea0f43
Changes
147
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
19 additions
and
20 deletions
+19
-20
templates/adding_a_new_model/tokenization_xxx.py
templates/adding_a_new_model/tokenization_xxx.py
+0
-1
tests/test_configuration_common.py
tests/test_configuration_common.py
+1
-1
tests/test_hf_api.py
tests/test_hf_api.py
+1
-1
tests/test_model_card.py
tests/test_model_card.py
+1
-1
tests/test_modeling_albert.py
tests/test_modeling_albert.py
+1
-1
tests/test_modeling_auto.py
tests/test_modeling_auto.py
+1
-1
tests/test_modeling_bert.py
tests/test_modeling_bert.py
+1
-1
tests/test_modeling_common.py
tests/test_modeling_common.py
+1
-1
tests/test_modeling_ctrl.py
tests/test_modeling_ctrl.py
+1
-1
tests/test_modeling_distilbert.py
tests/test_modeling_distilbert.py
+1
-1
tests/test_modeling_gpt2.py
tests/test_modeling_gpt2.py
+1
-1
tests/test_modeling_openai.py
tests/test_modeling_openai.py
+1
-1
tests/test_modeling_roberta.py
tests/test_modeling_roberta.py
+1
-1
tests/test_modeling_t5.py
tests/test_modeling_t5.py
+1
-1
tests/test_modeling_tf_albert.py
tests/test_modeling_tf_albert.py
+1
-1
tests/test_modeling_tf_auto.py
tests/test_modeling_tf_auto.py
+1
-1
tests/test_modeling_tf_bert.py
tests/test_modeling_tf_bert.py
+1
-1
tests/test_modeling_tf_common.py
tests/test_modeling_tf_common.py
+1
-1
tests/test_modeling_tf_ctrl.py
tests/test_modeling_tf_ctrl.py
+1
-1
tests/test_modeling_tf_distilbert.py
tests/test_modeling_tf_distilbert.py
+1
-1
No files found.
templates/adding_a_new_model/tokenization_xxx.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Tokenization class for model XXX."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
collections
import
logging
...
...
tests/test_configuration_common.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
json
import
os
...
...
tests/test_hf_api.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
os
import
time
...
...
tests/test_model_card.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
os
...
...
tests/test_modeling_albert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_auto.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
logging
import
unittest
...
...
tests/test_modeling_bert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_common.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
copy
import
json
...
...
tests/test_modeling_ctrl.py
View file @
c824d15a
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_distilbert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_gpt2.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_openai.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_roberta.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_t5.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_tf_albert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_tf_auto.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
logging
import
unittest
...
...
tests/test_modeling_tf_bert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_tf_common.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
copy
import
os
...
...
tests/test_modeling_tf_ctrl.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
tests/test_modeling_tf_distilbert.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
Prev
1
2
3
4
5
6
7
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment