mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Cleanup old caffe2 scripts (#158475)
Testing on this one is grep based: if there were no reference to that script I can find, I deleted. We can easily add any of these back if needed! Pull Request resolved: https://github.com/pytorch/pytorch/pull/158475 Approved by: https://github.com/seemethere, https://github.com/huydhn, https://github.com/cyyever
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
param(
|
||||
[string]$protoc,
|
||||
[string]$srcdir,
|
||||
[string]$unprocessed,
|
||||
[string]$processed,
|
||||
[string]$out
|
||||
)
|
||||
$ErrorActionPreference = "Stop"
|
||||
Get-Content $unprocessed | % {$_ -Replace "caffe2/proto/caffe2.proto", "caffe2.proto"} | Set-Content $processed
|
||||
Add-Content -Path $processed -Value "option optimize_for = LITE_RUNTIME;`n" -NoNewline
|
||||
$dir = (Get-Item $processed).DirectoryName
|
||||
|
||||
copy $srcdir/caffe2/proto/caffe2.proto $srcdir/caffe2.proto
|
||||
Add-Content -Path $srcdir/caffe2.proto -Value "option optimize_for = LITE_RUNTIME;`n" -NoNewline
|
||||
|
||||
$processed = (Get-Item $processed).Name
|
||||
$cmd = "$protoc -I${dir} --cpp_out=$out $processed"
|
||||
Invoke-Expression $cmd
|
Reference in New Issue
Block a user