Allow targets to pass with -fsanitize=null under --config=asan.
PiperOrigin-RevId: 306939167 Change-Id: Ibe3a9a0f627d74bbebf93af8b0badd92e9c5abef
This commit is contained in:
parent
9d0c55d9f0
commit
e2f04be483
@ -1272,8 +1272,10 @@ Status FastParseExample(const Config& config,
|
||||
SparseBuffer& buffer = sparse_buffers[i][d];
|
||||
|
||||
// Update indices.
|
||||
int64* ix_p = &indices->matrix<int64>()(offset, 0);
|
||||
size_t delta = 0;
|
||||
|
||||
if (indices->NumElements() > 0) {
|
||||
int64* ix_p = &indices->matrix<int64>()(offset, 0);
|
||||
size_t example_index = first_example_of_minibatch(i);
|
||||
for (size_t example_end_index : buffer.example_end_indices) {
|
||||
size_t feature_index = 0;
|
||||
@ -1287,6 +1289,7 @@ Status FastParseExample(const Config& config,
|
||||
}
|
||||
++example_index;
|
||||
}
|
||||
}
|
||||
|
||||
CopySparseBufferToTensor(config.sparse[d].dtype, offset, &buffer, values);
|
||||
offset += delta;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user