Skip to content

Commit

Permalink
Merge pull request #5028 from FederatedAI/feature-2.0.0-beta-datafram…
Browse files Browse the repository at this point in the history
…e_update

dataframe: fix vstack column retrieval problem
  • Loading branch information
mgqa34 authored Aug 2, 2023
2 parents be96985 + 3d57d21 commit ad9ff3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fate/arch/dataframe/ops/_dimension_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def _align_blocks(blocks, align_fields_loc=None, full_block_migrate_set=None, ds
row = []
for _field_index in _field_indexes:
_src_bid, _offset = align_fields_loc[_field_index]
row.append(blocks[_src_bid][lid][offset].item() if isinstance(blocks[_src_bid], torch.Tensor)
else blocks[_src_bid][lid][offset])
row.append(blocks[_src_bid][lid][_offset].item() if isinstance(blocks[_src_bid], torch.Tensor)
else blocks[_src_bid][lid][_offset])

_align_block.append(row)

Expand Down

0 comments on commit ad9ff3f

Please sign in to comment.