Spaces:
Running on Zero
Running on Zero
Update data_utils/v2a_utils/feature_utils_288.py
Browse files
data_utils/v2a_utils/feature_utils_288.py
CHANGED
|
@@ -93,7 +93,7 @@ class FeaturesUtils(nn.Module):
|
|
| 93 |
|
| 94 |
|
| 95 |
def _init_jax(self):
|
| 96 |
-
if hasattr(self, "flax_model"):
|
| 97 |
return # already init
|
| 98 |
backend = jax.default_backend()
|
| 99 |
if backend != 'gpu':
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
def _init_jax(self):
|
| 96 |
+
if hasattr(self, "flax_model") and hasattr(self, "text_tokenizer"):
|
| 97 |
return # already init
|
| 98 |
backend = jax.default_backend()
|
| 99 |
if backend != 'gpu':
|