Skip to content

Instantly share code, notes, and snippets.

@iamsurya
Last active June 21, 2019 14:09
Show Gist options
  • Save iamsurya/0f240016a27a38f9b94e0763be868266 to your computer and use it in GitHub Desktop.
Save iamsurya/0f240016a27a38f9b94e0763be868266 to your computer and use it in GitHub Desktop.
echo EXPORTS > D:\libtensorflow\tensorflow.def
for /f "usebackq tokens=4,* delims=_ " %i in (`dumpbin /exports "D:\libtensorflow\tensorflow.dll"`) do if %i==TF echo %i_%j >> D:\libtensorflow\tensorflow.def
lib /def:"D:\libtensorflow\tensorflow.def" /out:"D:\libtensorflow\tensorflow.lib" /machine:x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment