Skip to content

Commit cd636c5

Browse files
committed
code generation for dropout layer
1 parent a69c21c commit cd636c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/onnx_gdf_parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ int writeGDF
338338
ofsGDF << "node org.khronos.nn_extension.convolution_layer " << layer_input << " " << layer_weights << " " << layer_bias
339339
<< " " << layer_output << "_params" << " " << layer_output << std::endl;
340340
}
341+
else if(layer_type == "Dropout") {
342+
ofsGDF << "node org.khronos.openvx.copy " << layer_input << " " << layer_output << std::endl;
343+
}
341344

342345
if(i == net.size() - 1) {
343346
ofsGDF << "write " << layer_output << " output.f32" << std::endl;

0 commit comments

Comments
 (0)