Skip to content

Commit

Permalink
Fix export of multidimensional params (facebookresearch#214)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookresearch#214

Reviewed By: adamlerer

Differential Revision: D28786238

fbshipit-source-id: 3613c5ae705367895ccf4b5b2fe54f9d6bcc5b54
  • Loading branch information
lw authored and facebook-github-bot committed Jun 7, 2021
1 parent b049325 commit 1598839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchbiggraph/converters/export_to_tsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def make_tsv_for_relation_types(
write(
relation_types_tf,
(rel_t_name, side, op_name, param_name, shape),
param,
param.flatten(),
)
else:
for rel_t_name, rel_t_config, operator in zip(
Expand All @@ -113,7 +113,7 @@ def make_tsv_for_relation_types(
write(
relation_types_tf,
(rel_t_name, "rhs", op_name, param_name, shape),
param,
param.flatten(),
)

relation_types_output_filename = getattr(
Expand Down

0 comments on commit 1598839

Please sign in to comment.