Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
a0ffa747
Commit
a0ffa747
authored
Sep 17, 2020
by
lucas_miranda
Browse files
Added tests for model_utils.py
parent
343cf82d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_model_utils.py
View file @
a0ffa747
...
...
@@ -24,7 +24,7 @@ from tensorflow.python.framework.ops import EagerTensor
)
)
def
test_far_away_uniform_initialiser
(
shape
):
far
=
deepof
.
model_utils
.
far_away_uniform_initialiser
(
shape
,
0
,
15
,
100
)
far
=
deepof
.
model_utils
.
far_away_uniform_initialiser
(
shape
,
0
,
15
,
100
0
)
random
=
tf
.
random
.
uniform
(
shape
,
0
,
15
)
assert
far
.
shape
==
shape
assert
tf
.
abs
(
tf
.
norm
(
tf
.
math
.
subtract
(
far
[
1
:],
far
[:
1
])))
>
tf
.
abs
(
...
...
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