Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
vision_transformer_jax
Commits
eea85d10
Commit
eea85d10
authored
Aug 30, 2024
by
suily
Browse files
添加推理结果
parent
67a1d360
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
README.md
README.md
+1
-0
test.py
test.py
+1
-1
No files found.
README.md
View file @
eea85d10
...
...
@@ -154,6 +154,7 @@ python test.py
<div
align=
center
>
<img
src=
"./doc/picsum.jpg"
/>
</div>
```
dcu推理结果:
0.73861 : alp
...
...
test.py
View file @
eea85d10
...
...
@@ -19,7 +19,7 @@ import tensorflow_datasets as tfds
import
time
# import tensorflow as tf
'''
显示可用设备gpu的数量。
'''
'''
测试dcu/gpu
'''
from
jax.lib
import
xla_bridge
jax_test
=
xla_bridge
.
get_backend
().
platform
if
not
(
jax_test
==
'gpu'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment