Skip to content

Commit 62fb6e7

Browse files
committed
Adds addtional comments in source code for understandability
1 parent 33f77af commit 62fb6e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tensorflow_io/core/kernels/avro/parse_avro_kernels.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ Status ParseAvro(const AvroParserConfig& config,
190190

191191
// This parameter affects performance in a big and data-dependent way.
192192
const size_t kMiniBatchSizeBytes = 50000;
193+
194+
// avro_num_minibatches_ is int64 in the op interface. If not set
195+
// the default value is 0.
193196
size_t avro_num_minibatches_;
194197

195198
// Calculate number of minibatches.
@@ -421,7 +424,7 @@ class ParseAvroOp : public OpKernel {
421424
dense_shapes_[d].dims() > 1 && dense_shapes_[d].dim_size(0) == -1;
422425
}
423426

424-
// Check that avro_num_minibatches is positive
427+
// Check that avro_num_minibatches is not negative
425428
OP_REQUIRES(ctx, avro_num_minibatches_ >= 0,
426429
errors::InvalidArgument("Need avro_num_minibatches >= 0, got ",
427430
avro_num_minibatches_));

0 commit comments

Comments
 (0)