Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNArchLang
Commits
292498dc
Commit
292498dc
authored
Sep 25, 2019
by
Evgeny Kusmenko
Browse files
Merge branch 'tensorflow_group' into 'master'
Tensorflow group 2 See merge request
!26
parents
6f92839d
fb75a171
Pipeline
#187341
passed with stages
in 19 minutes and 47 seconds
Changes
102
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/FullyConnected.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/GRU.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Get.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/GlobalPooling.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/LSTM.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Lrn.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/OneHot.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Pooling.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/RNN.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Relu.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Sigmoid.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Softmax.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Split.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/Tanh.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch.predefined
;
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/predefined/UpConvolution.java
0 → 100644
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
package
de.monticore.lang.monticar.cnnarch.predefined
;
import
de.monticore.lang.monticar.cnnarch._symboltable.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
public
class
UpConvolution
extends
PredefinedLayerDeclaration
{
private
UpConvolution
()
{
super
(
AllPredefinedLayers
.
UP_CONVOLUTION_NAME
);
}
@Override
public
List
<
ArchTypeSymbol
>
computeOutputTypes
(
List
<
ArchTypeSymbol
>
inputTypes
,
LayerSymbol
layer
,
VariableSymbol
.
Member
member
)
{
return
computeUpConvOutputShape
(
inputTypes
.
get
(
0
),
layer
,
layer
.
getIntValue
(
AllPredefinedLayers
.
CHANNELS_NAME
).
get
());
}
@Override
public
void
checkInput
(
List
<
ArchTypeSymbol
>
inputTypes
,
LayerSymbol
layer
,
VariableSymbol
.
Member
member
)
{
errorIfInputSizeIsNotOne
(
inputTypes
,
layer
);
}
public
static
UpConvolution
create
(){
UpConvolution
declaration
=
new
UpConvolution
();
List
<
ParameterSymbol
>
parameters
=
new
ArrayList
<>(
Arrays
.
asList
(
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
KERNEL_NAME
)
.
constraints
(
Constraints
.
INTEGER_TUPLE
,
Constraints
.
POSITIVE
)
.
build
(),
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
CHANNELS_NAME
)
.
constraints
(
Constraints
.
INTEGER
,
Constraints
.
POSITIVE
)
.
build
(),
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
STRIDE_NAME
)
.
constraints
(
Constraints
.
INTEGER_TUPLE
,
Constraints
.
POSITIVE
)
.
defaultValue
(
Arrays
.
asList
(
1
,
1
))
.
build
(),
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
NOBIAS_NAME
)
.
constraints
(
Constraints
.
BOOLEAN
)
.
defaultValue
(
false
)
.
build
(),
new
ParameterSymbol
.
Builder
()
.
name
(
AllPredefinedLayers
.
PADDING_NAME
)
.
constraints
(
Constraints
.
PADDING_TYPE
)
.
defaultValue
(
AllPredefinedLayers
.
PADDING_SAME
)
.
build
()));
declaration
.
setParameters
(
parameters
);
return
declaration
;
}
}
src/test/java/de/monticore/lang/monticar/cnnarch/AbstractSymtabTest.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch
;
...
...
src/test/java/de/monticore/lang/monticar/cnnarch/CalculatorTest.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch
;
...
...
src/test/java/de/monticore/lang/monticar/cnnarch/InstanceTest.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch
;
...
...
src/test/java/de/monticore/lang/monticar/cnnarch/ParserTest.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch
;
...
...
src/test/java/de/monticore/lang/monticar/cnnarch/SymtabTest.java
View file @
292498dc
/**
*
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnnarch
;
...
...
Prev
1
2
3
4
5
6
Next
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