TransForm_Kit/ModelConvert/pytorch2caffe/code/ConvertLayer_caffe.py
def AddConst(self,pytorch_layer):
        layer = pb2.LayerParameter()
        layer.type = "Power"
        layer.power_param.power = 1
        layer.power_param.scale = 1
        """ Constant to add should be filled by hand, since not visible in autograd """
        layer.power_param.shift = float('inf')
        return layer
 Constant to add should be filled by hand, since not visible in autograd 
Constant to add should be filled by hand, since not visible in autograd
Constant to add should be filled by hand since not visible in autograd
def AddConst(self,pytorch_layer):
        layer = pb2.LayerParameter()
        layer.type = "Power"
        layer.power_param.power = 1
        layer.power_param.scale = 1
        layer.power_param.shift = float('inf')
        return layer
def AddConst ( self , pytorch_layer ) : layer = pb2 . LayerParameter ( ) layer . type = "Power" layer . power_param . power = 1 layer . power_param . scale = 1 layer . power_param . shift = float ( 'inf' ) return layer
Constant to add should be filled by hand, since not visible in autograd
Constant to add should be filled by hand since not visible in autograd
""" Constant to add should be filled by hand, since not visible in autograd """
self
pytorch_layer