Custom
Last updated
Was this helpful?
Last updated
Was this helpful?
The Custom Component provides a generic component in which you can write custom Python (e.g., TensorFlow) code to transform data using the Component's .
The Component's input socket must be connected to another Component that provides input data, and the output socket must be connected to another Component to output the transformed data to.
The Custom component starts out with the following code:
You will add your code to the call() method of the LayerCustom_LayerCustom_1Keras class which is invoked by PerceptiLabs to transform data when the model runs (including when PerceptiLabs runs the model as you edit it in the to display previews). In general, you will add your transformation(s) between the input
and output
assignments:
Tip: You can include statements above the class declarations to import other Python modules.