Skip to content

Commit

Permalink
add @libedgetpu_runtime_version
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Aug 5, 2022
1 parent 51c0295 commit e15f6fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ defmodule TfliteElixir.MixProject do
@prefer_precompiled "YES"
@github_url "https://github.com/cocoa-xu/tflite_elixir"
@libedgetpu_runtime_github_url "https://github.com/cocoa-xu/libedgetpu"
@libedgetpu_runtime_version "0.1.0"
# only means compatible. need to write more tests
@compatible_tflite_versions [
"2.7.0",
Expand Down Expand Up @@ -309,8 +310,8 @@ defmodule TfliteElixir.MixProject do

defp download_edgetpu_runtime(edgetpu_libraries) do
with {:ok, triplet} <- get_triplet(edgetpu_libraries) do
filename = "edgetpu_runtime_#{triplet}_v#{@version}"
runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@version}/#{filename}.zip"
filename = "edgetpu_runtime_#{triplet}_v#{@libedgetpu_runtime_version}"
runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@libedgetpu_runtime_version}/#{filename}.zip"
unzip_to = Path.join([cache_dir(), filename])
{download_archived_file("#{filename}.zip", runtime_url, unzip_to, :zip), filename, triplet}
else
Expand Down

0 comments on commit e15f6fc

Please sign in to comment.