Skip to content

Commit

Permalink
catalog rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
田晶晶 authored and 田晶晶 committed Oct 20, 2018
1 parent f9d997b commit bd52b2a
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 41 deletions.
34 changes: 34 additions & 0 deletions include/sita/filler/filler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// Created by unsky on 02/07/18.
//

#ifndef SITA_FILLER_FILLER_H
#define SITA_FILLER_FILLER_H
#include <vector>
#include <glog/logging.h>
#include <string>
#include "sita/macros.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#include "sita/proto/sita.h"
#include "sita/io_protobuff.h"
namespace sita{

class Filler{
public:
Filler(std::string model_file);
~Filler(){};
void graph_symbol_show();
GraphParameter * graph_sym(){
return &_graph;}

private:
GraphParameter _graph;

};

}//namespace


#endif //SITA_STUFF_GRAPH_H
7 changes: 4 additions & 3 deletions include/sita/dlflow/graph.h → include/sita/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Created by unsky on 02/07/18.
//

#ifndef SITA_DLFLOW_GRAPH_H
#define SITA_DLFLOW_GRAPH_H
#ifndef SITA_GRAPH_H
#define SITA_GRAPH_H
#include <vector>
#include <glog/logging.h>
#include <string>
Expand All @@ -21,7 +21,8 @@ class Graph{
~Graph(){};
void graph_symbol_show();
GraphParameter * graph_sym(){
return &_graph;}
return &_graph;
}

private:
GraphParameter _graph;
Expand Down
34 changes: 34 additions & 0 deletions include/sita/metric/metric.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// Created by unsky on 02/07/18.
//

#ifndef SITA_METRIC_METRIC_H
#define SITA_METRIC_METRIC_H
#include <vector>
#include <glog/logging.h>
#include <string>
#include "sita/macros.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#include "sita/proto/sita.h"
#include "sita/io_protobuff.h"
namespace sita{

class Metric{
public:
Metric(std::string model_file);
~Metric(){};
void graph_symbol_show();
GraphParameter * graph_sym(){
return &_graph;}

private:
GraphParameter _graph;

};

}//namespace


#endif //SITA_STUFF_GRAPH_H
8 changes: 0 additions & 8 deletions include/sita/mlflow/mlflow.h

This file was deleted.

4 changes: 2 additions & 2 deletions include/sita/dlflow/operator.h → include/sita/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Created by unsky on 03/07/18.
//

#ifndef SITA_DLFLOW_OPERATORS_H
#define SITA_DLFLOW_OPERATORS_H
#ifndef SITA_OPERATORS_H
#define SITA_OPERATORS_H
#include <vector>
#include <string>
#include "sita/macros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Created by unsky on 15/08/18.
//

#ifndef SITA_DLFLOW_BATCH_NORM_H
#define SITA_DLFLOW_BATCH_NORM_H
#include "sita/dlflow/operator.h"
#ifndef SITA_OPERATORS_BATCH_NORM_H
#define SITA_OPERATORS_BATCH_NORM_H
#include "sita/operator.h"
#include "sita/proto/sita.h"
namespace sita{

Expand Down Expand Up @@ -38,4 +38,4 @@ class BatchNorm: public Operator<Dtype>{
bool _handles_setup;
};
}
#endif //SITA_DLFLOW_BATCH_NORM_H
#endif //SITA_OPERATORS_BATCH_NORM_H
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Created by unsky on 15/08/18.
//

#ifndef SITA_DLFLOW_CONVOLUTION_H
#define SITA_DLFLOW_CONVOLUTION_H
#include "sita/dlflow/operator.h"
#ifndef SITA_OPERATORS_CONVOLUTION_H
#define SITA_OPERATORS_CONVOLUTION_H
#include "sita/operator.h"
#include "sita/proto/sita.h"
namespace sita{

Expand Down Expand Up @@ -54,4 +54,4 @@ class Convolution: public Operator<Dtype>{

};
}
#endif //SITA_DLFLOW_CONVOLUTION_H
#endif //SITA_OPERATORS_CONVOLUTION_H
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Created by unsky on 15/08/18.
//

#ifndef SITA_DLFLOW_RELU_H
#define SITA_DLFLOW_RELU_H
#include "sita/dlflow/operator.h"
#ifndef SITA_OPERATORS_RELU_H
#define SITA_OPERATORS_RELU_H
#include "sita/operator.h"
#include "sita/proto/sita.h"
namespace sita{

Expand Down Expand Up @@ -35,4 +35,4 @@ class ReLU: public Operator<Dtype>{
bool _handles_setup;
};
}
#endif //SITA_DLFLOW_BATCH_NORM_H
#endif //SITA_OPERATORS_BATCH_NORM_H
File renamed without changes.
4 changes: 2 additions & 2 deletions include/sita/dlflow/registry.h → include/sita/registry.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// Created by unsky on 03/07/18.
//
#ifndef SITA_DLFLOW_REGISTRY_H_
#define SITA_DLFLOW_REGISTRY_H_
#ifndef SITA_REGISTRY_H
#define SITA_REGISTRY_H


#include "sita/macros.h"
Expand Down
4 changes: 2 additions & 2 deletions include/sita/tensor.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//---------------------------------
//write by unsky
//---------------------------------
#ifndef SITA_TENSOR_H_
#define SITA_TENSOR_H_
#ifndef SITA_TENSOR_H
#define SITA_TENSOR_H

#include <vector>
#include <iostream>
Expand Down
6 changes: 3 additions & 3 deletions include/sita/workspace.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//---------------------------------
//write by unsky
//---------------------------------
#ifndef SITA_WORKSPACE_H_
#define SITA_WORKSPACE_H_
#ifndef SITA_WORKSPACE_H
#define SITA_WORKSPACE_H
#include <vector>
#include <map>
#include <set>
Expand All @@ -11,7 +11,7 @@
#include "tensor.h"
#include "context.h"
#include "macros.h"
#include "sita/dlflow/graph.h"
#include "sita/graph.h"
#include "types.h"
#include "sita/dataprovider/mnist_dataprovider.h"
#include "sita/dataprovider/dataprovider.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sita/dlflow/graph.cpp → src/sita/graph.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Created by unsky on 02/07/18.
//
#include "sita/dlflow/graph.h"
#include "sita/graph.h"
namespace sita{

Graph::Graph(std::string model_file){
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sita/dlflow/operator.cpp → src/sita/operator.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Created by unsky on 27/06/18.
//
#include "sita/dlflow/operator.h"
#include "sita/operator.h"
namespace sita{

template<typename Dtype>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sita/dlflow/operators/batch_norm.h"
#include "sita/operators/batch_norm.h"
namespace sita{

template <typename Dtype>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sita/dlflow/operators/batch_norm.h"
#include "sita/operators/batch_norm.h"
namespace sita{
template<typename Dtype>
void BatchNorm<Dtype>::forward(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Created by unsky on 16/08/18.
//
#include "sita/dlflow/operators/convolution.h"
#include "sita/operators/convolution.h"
namespace sita{
template<typename Dtype>
Convolution<Dtype>::~Convolution(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sita/dlflow/operators/convolution.h"
#include "sita/operators/convolution.h"
namespace sita{

__global__ void sync_conv_groups() { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sita/dlflow/operators/relu.h"
#include "sita/operators/relu.h"
namespace sita{

template <typename Dtype>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sita/dlflow/operators/relu.h"
#include "sita/operators/relu.h"
namespace sita{
template<typename Dtype>
void ReLU<Dtype>::forward(){
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion tools/sita.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ int main(int argc, char** argv) {
std::string model_file = "../test.prototxt";
sita::Graph graph(model_file);


std::vector<float> means;
means.push_back(float(0));
sita::MnistDataProvider<float > mnistdp("../data/mnist/train-images-idx3-ubyte",
Expand Down

0 comments on commit bd52b2a

Please sign in to comment.