Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.tensorflow
Merge requests
!5
Resolve "Tensorflow 1.0"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Tensorflow 1.0"
23-tensorflow-1-0
into
master
Overview
0
Commits
6
Pipelines
1
Changes
12
Merged
Tiago de Freitas Pereira
requested to merge
23-tensorflow-1-0
into
master
8 years ago
Overview
0
Commits
6
Pipelines
1
Changes
12
Expand
Closes
#23 (closed)
0
0
Merge request reports
Viewing commit
3070af95
Prev
Next
Show latest version
12 files
+
39
−
39
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
3070af95
Porting to tensorflow 1.0.0
· 3070af95
Tiago de Freitas Pereira
authored
8 years ago
bob/learn/tensorflow/initialization/Initialization.py
+
1
−
1
Options
@@ -29,7 +29,7 @@ class Initialization(object):
@@ -29,7 +29,7 @@ class Initialization(object):
tf
.
set_random_seed
(
seed
)
tf
.
set_random_seed
(
seed
)
def
variable_exist
(
self
,
var
):
def
variable_exist
(
self
,
var
):
return
var
in
[
v
.
name
.
split
(
"
/
"
)[
0
]
for
v
in
tf
.
a
l
l_variables
()]
return
var
in
[
v
.
name
.
split
(
"
/
"
)[
0
]
for
v
in
tf
.
glob
al_variables
()]
def
__call__
(
self
,
shape
,
name
,
scope
,
init_value
=
None
):
def
__call__
(
self
,
shape
,
name
,
scope
,
init_value
=
None
):
NotImplementedError
(
"
Please implement this function in derived classes
"
)
NotImplementedError
(
"
Please implement this function in derived classes
"
)
Loading