Skip to content

Commit

Permalink
fix categorify c++ op not working with new tensor conversions (#370)
Browse files Browse the repository at this point in the history
* fix categorify c++ op not working with new tensor conversions

* fix spacing format
  • Loading branch information
jperez999 authored Jun 11, 2024
1 parent c7c83b1 commit 9c8f216
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions merlin/dag/executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
)
from merlin.dag import ColumnSelector, DataFormats, Graph, Node
from merlin.dag.ops.stat_operator import StatOperator
from merlin.dag.utils import group_values_offsets
from merlin.dtypes.shape import DefaultShapes
from merlin.io import Dataset
from merlin.io.worker import clean_worker_cache
Expand Down Expand Up @@ -119,7 +120,11 @@ def _execute_node(self, node, transformable, capture_dtypes=False, strict=False)
upstream_columns = self._append_addl_root_columns(node, transformable, upstream_outputs)
formatted_columns = self._standardize_formats(node, upstream_columns)
transform_input = self._merge_upstream_columns(formatted_columns)
if "CategorifyTransform" in str(node.op):
transform_input = group_values_offsets(transform_input)
transform_output = self._run_node_transform(node, transform_input, capture_dtypes, strict)
if "CategorifyTransform" in str(node.op):
transform_output = TensorTable(transform_output)
transform_output = _convert_format(transform_output, self.target_format)
return transform_output

Expand Down

0 comments on commit 9c8f216

Please sign in to comment.