File tree 2 files changed +10
-21
lines changed
test/Microsoft.ML.PerformanceTests
2 files changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,19 @@ protected virtual Job GetJobDefinition()
39
39
/// </summary>
40
40
private IToolchain CreateToolchain ( )
41
41
{
42
+ TimeSpan timeout = TimeSpan . FromMinutes ( 5 ) ;
43
+
42
44
#if NETFRAMEWORK
43
45
var tfm = "net461" ;
44
- var csProj = CsProjClassicNetToolchain . Net461 ;
46
+ var csProj = CsProjClassicNetToolchain . From ( tfm , timeout : timeout ) ;
45
47
#else
46
- var tfm = AppDomain . CurrentDomain . GetData ( "FX_PRODUCT_VERSION" ) == null ?
47
- NetCoreAppSettings . NetCoreApp21 . TargetFrameworkMoniker : NetCoreAppSettings . NetCoreApp31 . TargetFrameworkMoniker ;
48
- var csProj = AppDomain . CurrentDomain . GetData ( "FX_PRODUCT_VERSION" ) == null ?
49
- CsProjCoreToolchain . NetCoreApp21 : CsProjCoreToolchain . NetCoreApp31 ;
48
+ var settings = AppDomain . CurrentDomain . GetData ( "FX_PRODUCT_VERSION" ) == null
49
+ ? NetCoreAppSettings . NetCoreApp21 : NetCoreAppSettings . NetCoreApp31 ;
50
+
51
+ settings = settings . WithTimeout ( timeout ) ;
52
+
53
+ var tfm = settings . TargetFrameworkMoniker ;
54
+ var csProj = CsProjCoreToolchain . From ( settings ) ;
50
55
#endif
51
56
return new Toolchain (
52
57
tfm ,
Original file line number Diff line number Diff line change 32
32
<NativeAssemblyReference Include =" MklImports" />
33
33
<NativeAssemblyReference Condition =" '$(OS)' == 'Windows_NT'" Include =" libiomp5md" />
34
34
</ItemGroup >
35
- <ItemGroup >
36
- <MetaFile Update =" @(MetaFile)" >
37
- <Url >https://aka.ms/mlnet-resources/meta/%(Identity)</Url >
38
- <DestinationFile >$([System.IO.Path]::GetTempPath())/MLNET/</DestinationFile >
39
- </MetaFile >
40
- <TensorflowMetaFile Include =" @(MetaFile->'$([System.IO.Path]::GetTempPath())/MLNET/%(Identity)')" />
41
- </ItemGroup >
42
- <Target Name =" DownloadTensorflowMetaFiles" Inputs =" @(TensorflowMetaFile)" Outputs =" %(TensorflowMetaFile.DestinationFile)" >
43
- <Message Importance =" High" Text =" Downloading tensorflow meta files... %(TensorflowMetaFile.DestinationFile)" />
44
- <DownloadFile
45
- SourceUrl =" %(MetaFile.Url)"
46
- DestinationFolder =" $([System.IO.Path]::GetTempPath())/MLNET/"
47
- Retries =" 5"
48
- SkipUnchangedFiles =" true" >
49
- </DownloadFile >
50
- </Target >
51
35
</Project >
You can’t perform that action at this time.
0 commit comments