Commit a8f34881 authored by Baran Dalgic's avatar Baran Dalgic

add tagging resources for testing

parent 2692fc43
Pipeline #154271 failed with stages
in 1 minute and 36 seconds
package tagging;
conforms to dltag.DataPathTagSchema;
tags AlexNet {
tag Alexnet with DataPath = {path = data, type = random};
tag Parent.a1 with DataPath = {path = lisjef, type = r34};
}
configuration Alexnet{
num_epoch : 100
batch_size : 500
optimizer : adam{
learning_rate : 0.001
}
}
package tagging;
component Alexnet{
ports in Z(0:255)^{3, 224, 224} image,
out Q(0:1)^{1000} predictions;
implementation CNN {
def split1(i){
[i] ->
Convolution(kernel=(5,5), channels=128) ->
Lrn(nsize=5, alpha=0.0001, beta=0.75) ->
Pooling(pool_type="max", kernel=(3,3), stride=(2,2), padding="no_loss") ->
Relu()
}
def split2(i){
[i] ->
Convolution(kernel=(3,3), channels=192) ->
Relu() ->
Convolution(kernel=(3,3), channels=128) ->
Pooling(pool_type="max", kernel=(3,3), stride=(2,2), padding="no_loss") ->
Relu()
}
def fc(){
FullyConnected(units=4096) ->
Relu() ->
Dropout()
}
image ->
Convolution(kernel=(11,11), channels=96, stride=(4,4), padding="no_loss") ->
Lrn(nsize=5, alpha=0.0001, beta=0.75) ->
Pooling(pool_type="max", kernel=(3,3), stride=(2,2), padding="no_loss") ->
Relu() ->
Split(n=2) ->
split1(i=[0|1]) ->
Concatenate() ->
Convolution(kernel=(3,3), channels=384) ->
Relu() ->
Split(n=2) ->
split2(i=[0|1]) ->
Concatenate() ->
fc(->=2) ->
FullyConnected(units=1000) ->
Softmax() ->
predictions
}
}
\ No newline at end of file
package tagging;
component Parent{
instance Alexnet a1;
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment