Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
682c12fe
Commit
682c12fe
authored
Sep 18, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed oprah
parent
cf03f0f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
TensorflowExamplePlugin.java
src/main/java/TensorflowExamplePlugin.java
+10
-14
No files found.
src/main/java/TensorflowExamplePlugin.java
View file @
682c12fe
...
...
@@ -163,24 +163,20 @@ public class TensorflowExamplePlugin
// init variable via constant
Tensor
<
Float
>
t
=
toTensor2DFloat
(
rv_stage1_out
,
tensorsToClose
);
//
Output builder_init = bundle.graph().opBuilder("Const", "rv_stage1_out_init").setAttr("dtype", t.dataType()).setAttr("value", t).build().output(0);
Output
builder_init
=
bundle
.
graph
().
opBuilder
(
"Const"
,
"rv_stage1_out_init"
).
setAttr
(
"dtype"
,
t
.
dataType
()).
setAttr
(
"value"
,
t
).
build
().
output
(
0
);
// variable
//
OperationBuilder builder2 = bundle.graph().opBuilder("Variable", "rv_stage1_out");
//
builder2.addInput(builder_init);
OperationBuilder
builder2
=
bundle
.
graph
().
opBuilder
(
"Variable"
,
"rv_stage1_out"
);
builder2
.
addInput
(
builder_init
);
//Tensor<Float> tensorVal = t;
//Output oValue = graph.opBuilder("Const",
name
).setAttr("dtype", tensorVal.dataType()).setAttr("value", tensorVal).build().output(0);
//Output oValue = graph.opBuilder("Const",
"rv_stage1_out"
).setAttr("dtype", tensorVal.dataType()).setAttr("value", tensorVal).build().output(0);
//bundle.graph().opBuilder("Assign", "Assign/rv_stage1_out").setAttr("value", t).build();
Operation
oprahWinfrey
=
bundle
.
graph
().
operation
(
"rv_stage1_out"
);
System
.
out
.
println
(
oprahWinfrey
.
toString
());
System
.
out
.
println
(
oprahWinfrey
.
type
());
//Operation oprahWinfrey2 = bundle.graph().operation("rv_stage1_out_nonexistant");
//System.out.println(oprahWinfrey2.toString());
//System.out.println(oprahWinfrey2.type());
Operation
ooyoo
=
bundle
.
graph
().
operation
(
"rv_stage1_out"
);
System
.
out
.
println
(
ooyoo
.
toString
());
System
.
out
.
println
(
ooyoo
.
type
());
System
.
out
.
println
(
"DONE"
);
...
...
@@ -210,9 +206,9 @@ public class TensorflowExamplePlugin
System
.
out
.
println
(
"DONE"
);
}
catch
(
final
IllegalStateException
ise
)
{
System
.
out
.
println
(
"Very Bad Error (VBE): "
+
ise
);
closeTensors
(
tensorsToClose
);
//
} catch (final IllegalStateException ise) {
//
System.out.println("Very Bad Error (VBE): "+ise);
//
closeTensors(tensorsToClose);
}
catch
(
final
NumberFormatException
nfe
)
{
//just skip unparsable lines ?!
}
finally
{
...
...
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