Update quality tooling for formatting (#21480)
* Result of black 23.1 * Update target to Python 3.7 * Switch flake8 to ruff * Configure isort * Configure isort * Apply isort with line limit * Put the right black version * adapt black in check copies * Fix copies
This commit is contained in:
@@ -28,7 +28,6 @@ if is_tf_available():
|
||||
|
||||
@tf.function(input_signature=(tf.TensorSpec((None,), tf.string, name="text"),))
|
||||
def serving(self, text):
|
||||
|
||||
tokenized = self.tokenizer(text)
|
||||
input_ids_dense = tokenized["input_ids"].to_tensor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user