findPlaceholderLayers
Find placeholder layers in network architecture imported from Keras or ONNX
findPlaceholderLayers is not recommended. Use importNetworkFromTensorFlow or importNetworkFromONNX to import a Keras or ONNX™ network as a dlnetwork object with custom
layers.
Syntax
Description
returns all placeholder layers that exist in the network architecture
placeholderLayers = findPlaceholderLayers(importedLayers)importedLayers imported by the importKerasLayers or importONNXLayers functions. Placeholder layers are the layers that
these functions insert in place of layers that are not supported by Deep Learning Toolbox™.
To use with an imported network, this function requires either the Deep Learning Toolbox Converter for TensorFlow™ Models support package or the Deep Learning Toolbox Converter for ONNX Model Format support package.
[
also returns the indices of the placeholder layers.placeholderLayers,indices] = findPlaceholderLayers(importedLayers)
Examples
Input Arguments
Output Arguments
Tips
If you have installed Deep Learning Toolbox Converter for TensorFlow Models and
findPlaceholderLayersis unable to find placeholder layers created when the ONNX network is imported, then try updating the Deep Learning Toolbox Converter for TensorFlow Models support package in the Add-On Explorer.