Created by: JepsonWong
copy api from paddle to paddle.fluid.
- paddle.tensor -> paddle.fluid.layers
- paddle.nn -> paddle.fluid.layers or paddle.fluid.dygraph
paddle | paddle.fluid |
---|---|
paddle.nn.CrossEntropyLoss | paddle.fluid.dygraph.CrossEntropyLoss |
paddle.nn.MSELoss | paddle.fluid.dygraph.MSELoss |
paddle.nn.L1Loss | paddle.fluid.dygraph.L1Loss |
paddle.nn.NLLLoss | paddle.fluid.dygraph.NLLLoss |
paddle.nn.BCELoss | paddle.fluid.dygraph.BCELoss |
paddle.tensor.randint | paddle.fluid.layers.randint |
paddle.tensor.randn | paddle.fluid.layers.randn |
paddle.tensor.randperm | paddle.fluid.layers.randperm |
paddle.tensor.allclose | paddle.fluid.layers.allclose |
paddle.tensor.elementwise_equal | paddle.fluid.layers.elementwise_equal |
paddle.tensor.flip | paddle.fluid.layers.flip |
paddle.tensor.roll | paddle.fluid.layers.roll |
paddle.tensor.log_softmax | paddle.fluid.layers.log_softmax |
paddle.tensor.full_like | paddle.fluid.layers.full_like |
paddle.tensor.arange | paddle.fluid.layers.arange |
paddle.tensor.full | paddle.fluid.layers.full |
paddle.tensor.tril | paddle.fluid.layers.tril |
paddle.tensor.triu | paddle.fluid.layers.triu |