Skip to content
Snippets Groups Projects
Commit a1039010 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Lint

parent 9592e961
Branches
No related tags found
No related merge requests found
Pipeline #19511 failed
...@@ -169,7 +169,7 @@ setup_pybind11(cfg) ...@@ -169,7 +169,7 @@ setup_pybind11(cfg)
source_code = self.CPP_IMPORT_PREFIX + str(self) source_code = self.CPP_IMPORT_PREFIX + str(self)
hash_str = _hash(source_code.encode()).hexdigest() hash_str = _hash(source_code.encode()).hexdigest()
cache_dir = join(get_cache_config()['object_cache'], f'cppimport_{hash_str}') cache_dir = join(get_cache_config()['object_cache'], f'cppimport_{hash_str}')
file_name = join(cache_dir, f'{self.module_name}.cpp') file_name = join(cache_dir, f'{self.module_name}.cpp')
os.makedirs(cache_dir, exist_ok=True) os.makedirs(cache_dir, exist_ok=True)
if not exists(file_name): if not exists(file_name):
......
...@@ -48,11 +48,6 @@ def create_field_from_array_like(field_name, maybe_array, annotations=None): ...@@ -48,11 +48,6 @@ def create_field_from_array_like(field_name, maybe_array, annotations=None):
index_dimensions = 0 index_dimensions = 0
field_type = FieldType.GENERIC field_type = FieldType.GENERIC
try:
import torch
except ImportError:
torch = None
if 'tensorflow.python.' in str(type(maybe_array)) and 'Tensor' in str(type(maybe_array)): if 'tensorflow.python.' in str(type(maybe_array)) and 'Tensor' in str(type(maybe_array)):
try: try:
# This fails on eager execution # This fails on eager execution
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment