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
OpenDAS
dlib
Commits
c8948ee0
Commit
c8948ee0
authored
Nov 16, 2015
by
Davis King
Browse files
Finished tensor_rand constructor.
parent
3d1c22b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
dlib/dnn/tensor_tools.cpp
dlib/dnn/tensor_tools.cpp
+7
-4
No files found.
dlib/dnn/tensor_tools.cpp
View file @
c8948ee0
...
...
@@ -4,6 +4,7 @@
#define DLIB_TeNSOR_TOOLS_CPP_
#include "tensor_tools.h"
#include "../string.h"
namespace
dlib
{
namespace
tt
{
...
...
@@ -41,9 +42,11 @@ namespace dlib { namespace tt
tensor_rand
(
unsigned
long
long
seed
)
{
// TODO
}
#ifdef DLIB_USE_CUDA
:
rnd
(
seed
){}
#else
{
rnd
.
set_seed
(
cast_to_string
(
seed
));
}
#endif
void
tensor_rand
::
fill_gaussian
(
...
...
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