if "slice" not in node.attr:
assert node.attr["new_axis_mask"] == 0
assert len(input_names) >= 4
rank = len(self._get_tensor_shape_from_type(input_nodes[0].datatype))
begin_masks = [True if i in node.attr["begin_masks"] else False for i in range(rank)]
end_masks = [True if i in node.attr["end_masks"] else False for i in range(rank)]
layer = builder.add_slice_dynamic(name=slice_output_name,