Created
April 30, 2019 01:43
-
-
Save rxwei/1ce5810454db46d89ef8af5ea9735afc to your computer and use it in GitHub Desktop.
MiniGo package linker error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "blank_swift.ipynb", | |
"version": "0.3.2", | |
"provenance": [], | |
"collapsed_sections": [], | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "swift", | |
"display_name": "Swift" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/rxwei/1ce5810454db46d89ef8af5ea9735afc/blank_swift.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"metadata": { | |
"id": "kZRlD4utdPuX", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 221 | |
}, | |
"outputId": "7dadbde3-2156-45db-b8fb-d617a6d3e404" | |
}, | |
"cell_type": "code", | |
"source": [ | |
"%install-swiftpm-flags -c release -Xlinker -ltensorflow\n", | |
"// Install MiniGo from GitHub.\n", | |
"%install '.package(url: \"https://github.com/tensorflow/swift-models\", .branch(\"stable\"))' MiniGo" | |
], | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Installing packages:\n", | |
"\t.package(url: \"https://github.com/tensorflow/swift-models\", .branch(\"stable\"))\n", | |
"\t\tMiniGo\n", | |
"With SwiftPM flags: ['-c', 'release', '-Xlinker', '-ltensorflow']\n", | |
"Working in: /tmp/tmpp43j8afz/swift-install\n", | |
"Compile Swift Module 'MiniGo' (19 sources)\n", | |
"Compile Swift Module 'MiniGoMain' (1 sources)\n", | |
"Linking ./.build/x86_64-unknown-linux/release/MiniGo\n", | |
"Compile Swift Module 'jupyterInstalledPackages' (1 sources)\n", | |
"Linking ./.build/x86_64-unknown-linux/release/libjupyterInstalledPackages.so\n", | |
"Initializing Swift...\n", | |
"Installation complete!\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"id": "oymcNgLbzA5B", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"cell_type": "code", | |
"source": [ | |
"import TensorFlow\n", | |
"import MiniGo\n", | |
"import Foundation" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"id": "QvfAVGn10B8E", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 156 | |
}, | |
"outputId": "967cd9ec-5bf7-474f-b0cb-833ca76c65c4" | |
}, | |
"cell_type": "code", | |
"source": [ | |
"let boardSize = 19\n", | |
"let simulationCountForOneMove = 40\n", | |
"\n", | |
"let config = GameConfiguration(\n", | |
" size: boardSize,\n", | |
" komi: 7.5,\n", | |
" isVerboseDebuggingEnabled: false\n", | |
")" | |
], | |
"execution_count": 9, | |
"outputs": [ | |
{ | |
"output_type": "error", | |
"ename": "", | |
"evalue": "ignored", | |
"traceback": [ | |
"error: Couldn't lookup symbols:\n MiniGo.GameConfiguration.init(size: Swift.Int, komi: Swift.Float, maxHistoryCount: Swift.Int, isVerboseDebuggingEnabled: Swift.Bool) -> MiniGo.GameConfiguration\n" | |
] | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"id": "V_H8yKDD0HE3", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"cell_type": "code", | |
"source": [ | |
"" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment