提交 2ad27f57 编写于 作者: V Vadim Pisarevsky

Merge pull request #9673 from dkurt:feature_dnn_tensorflow_defun

......@@ -363,7 +363,7 @@ void RemoveIdentityOps(tensorflow::GraphDef& net) {
const tensorflow::NodeDef &layer = net.node(li);
String type = layer.op();
if (type == "Identity") {
if (type == "Identity" || type == "Dropout") {
identity_ops_idx.push_back(li);
identity_ops[layer.name()] = layer.input(0);
}
......
......@@ -138,6 +138,11 @@ TEST(Test_TensorFlow, matmul)
runTensorFlowNet("matmul");
}
TEST(Test_TensorFlow, defun)
{
runTensorFlowNet("defun_dropout");
}
TEST(Test_TensorFlow, fp16)
{
const float l1 = 1e-3;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册