Minor change for a small thing that had annoyed me for a while :)
Note, this doesn't affect the pipelines (static & dynamic), rather working with ops as a mere objects.
For example:
from fuse.data import OpToTensor
# Assuming sample_dict is an 'NDict' with a key 'key'
op = OpToTensor()
op(sample_dict, key="key", op_id=None) # Must set op_id to some value although it's an optional
op(sample_dict, key="key") # After merging this PR :)
Minor change for a small thing that had annoyed me for a while :)
Note, this doesn't affect the pipelines (static & dynamic), rather working with ops as a mere objects. For example:
Mostly relevant for unit-testing.