TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tft.apply_function

tft.apply_function(
    fn,
    *args
)

Deprecated function, equivalent to fn(*args). (deprecated)

In previous versions of tf.Transform, it was necessary to wrap function application in apply_function, that is call apply_function(fn, args) instead of calling fn(args) directly. This was necessary due to limitations in the ability of tf.Transform to inspect the TensorFlow graph. These limitations no longer apply so apply_function is no longer needed.

Args:

  • fn: The function to apply.
  • *args: The arguments to apply fn to.

Returns:

The results of applying fn.