caffe2/core/transform.cc
NetDef Transform::ApplyTo(const NetDef& orig_net) {
  Graph g(orig_net);
  const auto matches = PatternMatch(g);
  ReplacePattern(matches, &g);
  return g.GetNetDef();
}
// The simple interface - performs the transformation upon a NetDef, and returns
// the result.
The simple interface - performs the transformation upon a NetDef, and returns
the result.
The simple interface - performs the transformation upon a NetDef and returns the result .
NetDef Transform::ApplyTo(const NetDef& orig_net) {
  Graph g(orig_net);
  const auto matches = PatternMatch(g);
  ReplacePattern(matches, &g);
  return g.GetNetDef();
}
NetDef Transform :: ApplyTo ( const NetDef & orig_net ) { Graph g ( orig_net ) ; const auto matches = PatternMatch ( g ) ; ReplacePattern ( matches , & g ) ; return g . GetNetDef ( ) ; }
The simple interface - performs the transformation upon a NetDef, and returns
the result.
The simple interface - performs the transformation upon a NetDef and returns the result .