Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c8948ee0
Commit
c8948ee0
authored
Nov 16, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished tensor_rand constructor.
parent
3d1c22b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
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 @@
...
@@ -4,6 +4,7 @@
#define DLIB_TeNSOR_TOOLS_CPP_
#define DLIB_TeNSOR_TOOLS_CPP_
#include "tensor_tools.h"
#include "tensor_tools.h"
#include "../string.h"
namespace
dlib
{
namespace
tt
namespace
dlib
{
namespace
tt
{
{
...
@@ -40,10 +41,12 @@ namespace dlib { namespace tt
...
@@ -40,10 +41,12 @@ namespace dlib { namespace tt
tensor_rand
::
tensor_rand
::
tensor_rand
(
tensor_rand
(
unsigned
long
long
seed
unsigned
long
long
seed
)
)
{
#ifdef DLIB_USE_CUDA
// TODO
:
rnd
(
seed
){}
}
#else
{
rnd
.
set_seed
(
cast_to_string
(
seed
));
}
#endif
void
tensor_rand
::
void
tensor_rand
::
fill_gaussian
(
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