forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Clojure BERT example's context argument (apache#14843)
* Clojure BERT example: minor code cleanup * Remove unused requires * Remove unused vars & function * Use `io` alias * Clojure BERT example: whitespace fix * Clojure BERT example: allow running with GPU The `infer` function accepts a CPU/GPU context, which the command line version of this example exposes as a `:cpu`/`:gpu` keyword. Previously, these options were ignored and the context was overridden to the default context (CPU). This commit allows users (both REPL and shell) to pass in a GPU context.
- Loading branch information
1 parent
81c2425
commit 45d2127
Showing
2 changed files
with
26 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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