nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/imports/descriptors/onnx/OnnxDescriptorParser.java
public static Map<String,OpDescriptor> onnxOpDescriptors() throws Exception {
        try(InputStream is = new ClassPathResource("onnxops.json").getInputStream()) {
            ObjectMapper objectMapper = new ObjectMapper();
            OnnxDescriptor opDescriptor = objectMapper.readValue(is,OnnxDescriptor.class);
            Map<String,OpDescriptor> descriptorMap = new HashMap<>();
            for(OpDescriptor descriptor : opDescriptor.getDescriptors()) {
                descriptorMap.put(descriptor.getName(),descriptor);
            }



            return descriptorMap;
        }
    }
public static Map<String,OpDescriptor> onnxOpDescriptors() throws Exception {
        try(InputStream is = new ClassPathResource("onnxops.json").getInputStream()) {
            ObjectMapper objectMapper = new ObjectMapper();
            OnnxDescriptor opDescriptor = objectMapper.readValue(is,OnnxDescriptor.class);
            Map<String,OpDescriptor> descriptorMap = new HashMap<>();
            for(OpDescriptor descriptor : opDescriptor.getDescriptors()) {
                descriptorMap.put(descriptor.getName(),descriptor);
            }



            return descriptorMap;
        }
    }
Get the onnx op descriptors by name
@return the onnx op descriptors by name
@throws Exception