Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在Azure中运行时,ML.NET Tensorflow图像分类会因SEHException崩溃_C#_Tensorflow_Azure Web App Service_Ml.net - Fatal编程技术网

C# 在Azure中运行时,ML.NET Tensorflow图像分类会因SEHException崩溃

C# 在Azure中运行时,ML.NET Tensorflow图像分类会因SEHException崩溃,c#,tensorflow,azure-web-app-service,ml.net,C#,Tensorflow,Azure Web App Service,Ml.net,我正在asp.NET core C#应用程序中使用ML.NET tensorflow来删除图像背景(与此处的实现方式类似)。 使用的Tensorflow模型是DeepLabV3异常_模型 在本地运行时,它可以正常工作(至少我无法在本地复制)。 但在Azure中运行应用程序服务时,有时调用PredictionEnginePool Predict方法时,它会因SEHException而崩溃: System.Runtime.InteropServices.SehexException(0x80004

我正在asp.NET core C#应用程序中使用ML.NET tensorflow来删除图像背景(与此处的实现方式类似)。
使用的Tensorflow模型是DeepLabV3异常_模型
在本地运行时,它可以正常工作(至少我无法在本地复制)。
但在Azure中运行应用程序服务时,有时调用PredictionEnginePool Predict方法时,它会因SEHException而崩溃:


System.Runtime.InteropServices.SehexException(0x80004005):外部组件引发了异常。在Microsoft.ML.Tensorflow.TensorFlowUtils.run()的Tensorflow.c_api.TF_SessionRun(IntPtr session、TF_Buffer*run_选项、TF_Output[]输入、IntPtr[]输入值、Int32 ninputs、TF_Output[]输出、IntPtr[]输出_值、Int32 noutputs、IntPtr[]目标_操作、Int32目标、IntPtr运行_元数据、IntPtr状态)在Microsoft.ML.Transforms.TensorFlowTransformer.Mapper.UpdateCacheIfRequired(Int64位置,ITensorValueGetter[]srcTensorGetters,String[]activeOutputColNames,OutputCache OutputCache)在Microsoft.ML.Transforms.TensorFlowTransformer.Mapper.c_u显示类9_0
1.b_u4(VBuffer
1&dst)在Microsoft.ML.Data.TypedCursorable
1.TypedRowBase.c_uu在Microsoft.ML.Data.TypedCursorable
1.TypedRowBase.FillValues(TRow row)在Microsoft.ML.Data.TypedCursorable
1.RowImplementation.FillValues(TRow row row)在Microsoft.ML.PredictionEngineBase
2.FillValues(TDst预测)在Microsoft.ML.PredictionEngine
2.Predict(TSrc示例,TDst&prediction)在Microsoft.ML.PredictionEngineBase
2.Predict(TSrc示例)在Microsoft.Extensions.ML.PredictionEnginePoolExtensions.Predict[TData,TPrediction](PredictionEnginePool2 PredictionEnginePool,String modelName,TData示例)在


我怎样才能更深入地调查它以获得更多关于这方面的见解?
出现这种问题的原因是什么

还有一点需要注意:重新启动服务及其web作业后,问题消失

我怎样才能更深入地调查它,以获得更多关于这方面的见解

您可能会得到有意义的错误代码

派生自并且具有一个属性,该属性仅是
Winerror.h
中定义的
HRESULT

常见错误值位于此处

我怎样才能更深入地调查它,以获得更多关于这方面的见解

您可能会得到有意义的错误代码

派生自并且具有一个属性,该属性仅是
Winerror.h
中定义的
HRESULT

常见错误值位于此处


是的,我已经检查了错误代码(在上面的异常堆栈跟踪中)。SEHExException(0x80004005)-E_FAIL未指定故障。但它并没有给我提供很多信息。是的,我已经检查了错误代码(它在上面的异常堆栈跟踪中)。SEHExException(0x80004005)-E_FAIL未指定故障。但它并没有给我提供太多的信息。同样的例外发生在云端托管的Azure Function应用程序上。提出了一个关于dotnet/machinelearning的问题。云中托管的Azure Function应用程序也发生了相同的异常。提出了一个关于dotnet/machinelearning的问题。