@@ -83,7 +83,6 @@ def _extract_table_arrays(table):
83
83
# Pad buffer addrs, sizes and array lengths so inputs are rectangular
84
84
num_columns = len (array_buffer_sizes )
85
85
for i in range (num_columns ):
86
-
87
86
# pad chunk list with empty lists that will be padded with null bufs
88
87
if len (array_buffer_sizes [i ]) < max_num_chunks :
89
88
array_buffer_sizes [i ].extend (
@@ -94,7 +93,6 @@ def _extract_table_arrays(table):
94
93
95
94
num_chunks = len (array_buffer_sizes [i ])
96
95
for j in range (num_chunks ):
97
-
98
96
# pad buffer addr, size, and array length lists
99
97
if len (array_buffer_sizes [i ][j ]) < max_num_bufs :
100
98
array_buffer_sizes [i ][j ].extend (
@@ -140,7 +138,6 @@ def wrap_func(inp):
140
138
def init_resource_op (self , table ):
141
139
"""Initialize the resource op with a pyarrow.Table"""
142
140
with tf .name_scope ("ArrowIOTensor" ) as scope :
143
-
144
141
# Serialize the schema to send to the kernel
145
142
schema_buffer = table .schema .serialize ()
146
143
@@ -241,7 +238,6 @@ class ArrowIOTensor(io_tensor_ops._TableIOTensor): # pylint: disable=protected-
241
238
# Constructor (private)
242
239
# =============================================================================
243
240
def __init__ (self , table , spec = None , internal = False ):
244
-
245
241
# Get or build a new ArrowIOResource
246
242
if isinstance (table , ArrowIOResource ):
247
243
arrow_resource = table
@@ -292,7 +288,7 @@ def __init__(self, table, spec=None, internal=False):
292
288
]
293
289
294
290
shapes = []
295
- for ( column_index , column ) in columns :
291
+ for column_index , column in columns :
296
292
shape , _ = core_ops .io_arrow_readable_spec (
297
293
resource , column_index , column
298
294
)
@@ -306,7 +302,7 @@ def __init__(self, table, spec=None, internal=False):
306
302
]
307
303
308
304
elements = []
309
- for (( column_index , column ), entry , shape ) in zip (columns , entries , shapes ):
305
+ for (column_index , column ), entry , shape in zip (columns , entries , shapes ):
310
306
function = _ArrowIOTensorComponentFunction (
311
307
core_ops .io_arrow_readable_read ,
312
308
resource ,
0 commit comments