Best way to build a model with parallel layers

I need to build a model where part of the input data need to go through the embedding process to be converted to numerical vector and the other part of the numerical data should go into the model directly, similar to what’s outlined here:


What is the best approach to accomplish this in DL4J? Should I build custom layer:

or should I use the lower level ComputationGraph? Thanks for any help.