• C
    add layer.to api (#32040) · 6e946e9d
    chentianyu03 提交于
    * add layer.to api
    
    * add layer.to api
    
    * add layer.to api
    
    * add the doc for Layer.to
    
    * add input type checking
    
    * modify assert and import bug
    
    * format code style
    
    * format code style
    
    * make place support str type
    
    * add SetGradVarBase method to set the gradient after conversion
    
    * modify argument palce to device
    
    * modify argument palce to device
    
    * modify doc of layers.to API
    
    * add xpuplace to device argument
    6e946e9d
layers.py 55.1 KB