未验证 提交 45fb85ae 编写于 作者: C Chen Long 提交者: GitHub

change (声明式编程模式(静态图)) to (声明式编程(静态图)专用API) (#2207)

上级 7902fc9d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
append_backward append_backward
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.backward.append_backward(loss, parameter_list=None, no_grad_set=None, callbacks=None) .. py:function:: paddle.fluid.backward.append_backward(loss, parameter_list=None, no_grad_set=None, callbacks=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
gradients gradients
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.backward.gradients(targets, inputs, target_gradients=None, no_grad_set=None) .. py:function:: paddle.fluid.backward.gradients(targets, inputs, target_gradients=None, no_grad_set=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
set_gradient_clip set_gradient_clip
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.clip.set_gradient_clip(clip, param_list=None, program=None) .. py:function:: paddle.fluid.clip.set_gradient_clip(clip, param_list=None, program=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Executor Executor
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.executor.Executor (place=None) .. py:class:: paddle.fluid.executor.Executor (place=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
global_scope global_scope
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.global_scope() .. py:function:: paddle.fluid.global_scope()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
scope_guard scope_guard
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.executor.scope_guard (scope) .. py:function:: paddle.fluid.executor.scope_guard (scope)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
BuildStrategy BuildStrategy
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.BuildStrategy .. py:class:: paddle.fluid.BuildStrategy
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
CompiledProgram CompiledProgram
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.CompiledProgram(program_or_graph, build_strategy=None) .. py:class:: paddle.fluid.CompiledProgram(program_or_graph, build_strategy=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DataFeedDesc DataFeedDesc
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.DataFeedDesc(proto_file) .. py:class:: paddle.fluid.DataFeedDesc(proto_file)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DataFeeder DataFeeder
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.DataFeeder(feed_list, place, program=None) .. py:class:: paddle.fluid.DataFeeder(feed_list, place, program=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExecutionStrategy ExecutionStrategy
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.ExecutionStrategy .. py:class:: paddle.fluid.ExecutionStrategy
......
...@@ -4,7 +4,7 @@ Executor ...@@ -4,7 +4,7 @@ Executor
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.Executor (place=None) .. py:class:: paddle.fluid.Executor (place=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ParallelExecutor ParallelExecutor
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.ParallelExecutor(use_cuda, loss_name=None, main_program=None, share_vars_from=None, exec_strategy=None, build_strategy=None, num_trainers=1, trainer_id=0, scope=None) .. py:class:: paddle.fluid.ParallelExecutor(use_cuda, loss_name=None, main_program=None, share_vars_from=None, exec_strategy=None, build_strategy=None, num_trainers=1, trainer_id=0, scope=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
WeightNormParamAttr WeightNormParamAttr
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.WeightNormParamAttr(dim=None, name=None, initializer=None, learning_rate=1.0, regularizer=None, trainable=True, do_model_average=False) .. py:class:: paddle.fluid.WeightNormParamAttr(dim=None, name=None, initializer=None, learning_rate=1.0, regularizer=None, trainable=True, do_model_average=False)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
create_random_int_lodtensor create_random_int_lodtensor
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.create_random_int_lodtensor(recursive_seq_lens, base_shape, place, low, high) .. py:function:: paddle.fluid.create_random_int_lodtensor(recursive_seq_lens, base_shape, place, low, high)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
data data
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.data(name, shape, dtype='float32', lod_level=0) .. py:function:: paddle.fluid.data(name, shape, dtype='float32', lod_level=0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
device_guard device_guard
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.device_guard(device=None) .. py:function:: paddle.fluid.device_guard(device=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
embedding embedding
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.embedding(input, size, is_sparse=False, is_distributed=False, padding_idx=None, param_attr=None, dtype='float32') .. py:function:: paddle.fluid.embedding(input, size, is_sparse=False, is_distributed=False, padding_idx=None, param_attr=None, dtype='float32')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
global_scope global_scope
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.global_scope() .. py:function:: paddle.fluid.global_scope()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
gradients gradients
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.gradients(targets, inputs, target_gradients=None, no_grad_set=None) .. py:function:: paddle.fluid.gradients(targets, inputs, target_gradients=None, no_grad_set=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
memory_optimize memory_optimize
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.memory_optimize(input_program, skip_opt_set=None, print_log=False, level=0, skip_grads=True) .. py:function:: paddle.fluid.memory_optimize(input_program, skip_opt_set=None, print_log=False, level=0, skip_grads=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
name_scope name_scope
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.name_scope(prefix=None) .. py:function:: paddle.fluid.name_scope(prefix=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
program_guard program_guard
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.program_guard(main_program, startup_program=None) .. py:function:: paddle.fluid.program_guard(main_program, startup_program=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
release_memory release_memory
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.release_memory(input_program, skip_opt_set=None) .. py:function:: paddle.fluid.release_memory(input_program, skip_opt_set=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save save
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.save(program, model_path) .. py:function:: paddle.fluid.save(program, model_path)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
scope_guard scope_guard
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.scope_guard(scope) .. py:function:: paddle.fluid.scope_guard(scope)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
load_inference_model load_inference_model
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.load_inference_model(dirname, executor, model_filename=None, params_filename=None, pserver_endpoints=None) .. py:function:: paddle.fluid.io.load_inference_model(dirname, executor, model_filename=None, params_filename=None, pserver_endpoints=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
load_params load_params
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.load_params(executor, dirname, main_program=None, filename=None) .. py:function:: paddle.fluid.io.load_params(executor, dirname, main_program=None, filename=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
load_persistables load_persistables
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.load_persistables(executor, dirname, main_program=None, filename=None) .. py:function:: paddle.fluid.io.load_persistables(executor, dirname, main_program=None, filename=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save save
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.save(program, model_path) .. py:function:: paddle.fluid.io.save(program, model_path)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save_inference_model save_inference_model
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.save_inference_model(dirname, feeded_var_names, target_vars, executor, main_program=None, model_filename=None, params_filename=None, export_for_deployment=True, program_only=False) .. py:function:: paddle.fluid.io.save_inference_model(dirname, feeded_var_names, target_vars, executor, main_program=None, model_filename=None, params_filename=None, export_for_deployment=True, program_only=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save_params save_params
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.save_params(executor, dirname, main_program=None, filename=None) .. py:function:: paddle.fluid.io.save_params(executor, dirname, main_program=None, filename=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save_persistables save_persistables
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.save_persistables(executor, dirname, main_program=None, filename=None) .. py:function:: paddle.fluid.io.save_persistables(executor, dirname, main_program=None, filename=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
save_vars save_vars
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.io.save_vars(executor, dirname, main_program=None, vars=None, predicate=None, filename=None) .. py:function:: paddle.fluid.io.save_vars(executor, dirname, main_program=None, vars=None, predicate=None, filename=None)
......
...@@ -4,7 +4,7 @@ BeamSearchDecoder ...@@ -4,7 +4,7 @@ BeamSearchDecoder
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.BeamSearchDecoder(cell, start_token, end_token, beam_size, embedding_fn=None, output_fn=None) .. py:class:: paddle.fluid.layers.BeamSearchDecoder(cell, start_token, end_token, beam_size, embedding_fn=None, output_fn=None)
......
...@@ -4,7 +4,7 @@ Decoder ...@@ -4,7 +4,7 @@ Decoder
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.Decoder() .. py:class:: paddle.fluid.layers.Decoder()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DynamicRNN DynamicRNN
=================== ===================
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.DynamicRNN(name=None) .. py:class:: paddle.fluid.layers.DynamicRNN(name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
GRUCell GRUCell
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.GRUCell(hidden_size, param_attr=None, bias_attr=None, gate_activation=None, activation=None, dtype="float32", name="GRUCell") .. py:class:: paddle.fluid.layers.GRUCell(hidden_size, param_attr=None, bias_attr=None, gate_activation=None, activation=None, dtype="float32", name="GRUCell")
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
IfElse IfElse
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.IfElse(cond, name=None) .. py:class:: paddle.fluid.layers.IfElse(cond, name=None)
......
...@@ -4,7 +4,7 @@ LSTMCell ...@@ -4,7 +4,7 @@ LSTMCell
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.LSTMCell(hidden_size, param_attr=None, bias_attr=None, gate_activation=None, activation=None, forget_bias=1.0, dtype="float32", name="LSTMCell") .. py:class:: paddle.fluid.layers.LSTMCell(hidden_size, param_attr=None, bias_attr=None, gate_activation=None, activation=None, forget_bias=1.0, dtype="float32", name="LSTMCell")
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Print Print
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.Print(input, first_n=-1, message=None, summarize=20, print_tensor_name=True, print_tensor_type=True, print_tensor_shape=True, print_tensor_lod=True, print_phase='both') .. py:function:: paddle.fluid.layers.Print(input, first_n=-1, message=None, summarize=20, print_tensor_name=True, print_tensor_type=True, print_tensor_shape=True, print_tensor_lod=True, print_phase='both')
......
...@@ -4,7 +4,7 @@ RNNCell ...@@ -4,7 +4,7 @@ RNNCell
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.RNNCell(name=None) .. py:class:: paddle.fluid.layers.RNNCell(name=None)
RNNCell是抽象的基类,代表将输入和状态映射到输出和新状态的计算,主要用于RNN。 RNNCell是抽象的基类,代表将输入和状态映射到输出和新状态的计算,主要用于RNN。
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
StaticRNN StaticRNN
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.StaticRNN(name=None) .. py:class:: paddle.fluid.layers.StaticRNN(name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Switch Switch
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.Switch (name=None) .. py:class:: paddle.fluid.layers.Switch (name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
While While
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.layers.While (cond, is_test=False, name=None) .. py:class:: paddle.fluid.layers.While (cond, is_test=False, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
autoincreased_step_counter autoincreased_step_counter
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.autoincreased_step_counter(counter_name=None, begin=1, step=1) .. py:function:: paddle.fluid.layers.autoincreased_step_counter(counter_name=None, begin=1, step=1)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
batch_norm batch_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.batch_norm(input, act=None, is_test=False, momentum=0.9, epsilon=1e-05, param_attr=None, bias_attr=None, data_layout='NCHW', in_place=False, name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False, use_global_stats=False) .. py:function:: paddle.fluid.layers.batch_norm(input, act=None, is_test=False, momentum=0.9, epsilon=1e-05, param_attr=None, bias_attr=None, data_layout='NCHW', in_place=False, name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False, use_global_stats=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
bilinear_tensor_product bilinear_tensor_product
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.bilinear_tensor_product(x, y, size, act=None, name=None, param_attr=None, bias_attr=None) .. py:function:: paddle.fluid.layers.bilinear_tensor_product(x, y, size, act=None, name=None, param_attr=None, bias_attr=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
case case
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.case(pred_fn_pairs, default=None, name=None) .. py:function:: paddle.fluid.layers.case(pred_fn_pairs, default=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
center_loss center_loss
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.center_loss(input, label, num_classes, alpha, param_attr, update_center=True) .. py:function:: paddle.fluid.layers.center_loss(input, label, num_classes, alpha, param_attr, update_center=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
cond cond
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.cond(pred, true_fn=None, false_fn=None, name=None) .. py:function:: paddle.fluid.layers.cond(pred, true_fn=None, false_fn=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
conv2d conv2d
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.conv2d(input, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format="NCHW") .. py:function:: paddle.fluid.layers.conv2d(input, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format="NCHW")
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
conv2d_transpose conv2d_transpose
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.conv2d_transpose(input, num_filters, output_size=None, filter_size=None, padding=0, stride=1, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format='NCHW') .. py:function:: paddle.fluid.layers.conv2d_transpose(input, num_filters, output_size=None, filter_size=None, padding=0, stride=1, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format='NCHW')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
conv3d conv3d
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.conv3d(input, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format="NCDHW") .. py:function:: paddle.fluid.layers.conv3d(input, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format="NCDHW")
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
conv3d_transpose conv3d_transpose
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.conv3d_transpose(input, num_filters, output_size=None, filter_size=None, padding=0, stride=1, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format='NCDHW') .. py:function:: paddle.fluid.layers.conv3d_transpose(input, num_filters, output_size=None, filter_size=None, padding=0, stride=1, dilation=1, groups=None, param_attr=None, bias_attr=None, use_cudnn=True, act=None, name=None, data_format='NCDHW')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
create_parameter create_parameter
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.create_parameter(shape,dtype,name=None,attr=None,is_bias=False,default_initializer=None) .. py:function:: paddle.fluid.layers.create_parameter(shape,dtype,name=None,attr=None,is_bias=False,default_initializer=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
create_py_reader_by_data create_py_reader_by_data
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.create_py_reader_by_data(capacity,feed_list,name=None,use_double_buffer=True) .. py:function:: paddle.fluid.layers.create_py_reader_by_data(capacity,feed_list,name=None,use_double_buffer=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
crf_decoding crf_decoding
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.crf_decoding(input, param_attr, label=None, length=None) .. py:function:: paddle.fluid.layers.crf_decoding(input, param_attr, label=None, length=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
data data
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.data(name, shape, append_batch_size=True, dtype='float32', lod_level=0, type=VarType.LOD_TENSOR, stop_gradient=True) .. py:function:: paddle.fluid.layers.data(name, shape, append_batch_size=True, dtype='float32', lod_level=0, type=VarType.LOD_TENSOR, stop_gradient=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
data_norm data_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.data_norm(input, act=None, epsilon=1e-05, param_attr=None, data_layout='NCHW', in_place=False, name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False) .. py:function:: paddle.fluid.layers.data_norm(input, act=None, epsilon=1e-05, param_attr=None, data_layout='NCHW', in_place=False, name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
deformable_conv deformable_conv
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.deformable_conv(input, offset, mask, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, deformable_groups=None, im2col_step=None, param_attr=None, bias_attr=None, modulated=True, name=None) .. py:function:: paddle.fluid.layers.deformable_conv(input, offset, mask, num_filters, filter_size, stride=1, padding=0, dilation=1, groups=None, deformable_groups=None, im2col_step=None, param_attr=None, bias_attr=None, modulated=True, name=None)
......
...@@ -4,7 +4,7 @@ dynamic_decode ...@@ -4,7 +4,7 @@ dynamic_decode
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:method:: dynamic_decode(decoder, inits=None, max_step_num=None, output_time_major=False, **kwargs): .. py:method:: dynamic_decode(decoder, inits=None, max_step_num=None, output_time_major=False, **kwargs):
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
dynamic_gru dynamic_gru
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.dynamic_gru(input, size, param_attr=None, bias_attr=None, is_reverse=False, gate_activation='sigmoid', candidate_activation='tanh', h_0=None, origin_mode=False) .. py:function:: paddle.fluid.layers.dynamic_gru(input, size, param_attr=None, bias_attr=None, is_reverse=False, gate_activation='sigmoid', candidate_activation='tanh', h_0=None, origin_mode=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
dynamic_lstm dynamic_lstm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.dynamic_lstm(input, size, h_0=None, c_0=None, param_attr=None, bias_attr=None, use_peepholes=True, is_reverse=False, gate_activation='sigmoid', cell_activation='tanh', candidate_activation='tanh', dtype='float32', name=None) .. py:function:: paddle.fluid.layers.dynamic_lstm(input, size, h_0=None, c_0=None, param_attr=None, bias_attr=None, use_peepholes=True, is_reverse=False, gate_activation='sigmoid', cell_activation='tanh', candidate_activation='tanh', dtype='float32', name=None)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
dynamic_lstmp dynamic_lstmp
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.dynamic_lstmp(input, size, proj_size, param_attr=None, bias_attr=None, use_peepholes=True, is_reverse=False, gate_activation='sigmoid', cell_activation='tanh', candidate_activation='tanh', proj_activation='tanh', dtype='float32', name=None, h_0=None, c_0=None, cell_clip=None, proj_clip=None) .. py:function:: paddle.fluid.layers.dynamic_lstmp(input, size, proj_size, param_attr=None, bias_attr=None, use_peepholes=True, is_reverse=False, gate_activation='sigmoid', cell_activation='tanh', candidate_activation='tanh', proj_activation='tanh', dtype='float32', name=None, h_0=None, c_0=None, cell_clip=None, proj_clip=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
embedding embedding
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.embedding(input, size, is_sparse=False, is_distributed=False, padding_idx=None, param_attr=None, dtype='float32') .. py:function:: paddle.fluid.layers.embedding(input, size, is_sparse=False, is_distributed=False, padding_idx=None, param_attr=None, dtype='float32')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
fc fc
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.fc(input, size, num_flatten_dims=1, param_attr=None, bias_attr=None, act=None, name=None) .. py:function:: paddle.fluid.layers.fc(input, size, num_flatten_dims=1, param_attr=None, bias_attr=None, act=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
group_norm group_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.group_norm(input, groups, epsilon=1e-05, param_attr=None, bias_attr=None, act=None, data_layout='NCHW', name=None) .. py:function:: paddle.fluid.layers.group_norm(input, groups, epsilon=1e-05, param_attr=None, bias_attr=None, act=None, data_layout='NCHW', name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
gru_unit gru_unit
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.gru_unit(input, hidden, size, param_attr=None, bias_attr=None, activation='tanh', gate_activation='sigmoid', origin_mode=False) .. py:function:: paddle.fluid.layers.gru_unit(input, hidden, size, param_attr=None, bias_attr=None, activation='tanh', gate_activation='sigmoid', origin_mode=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
hsigmoid hsigmoid
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.hsigmoid(input, label, num_classes, param_attr=None, bias_attr=None, name=None, path_table=None, path_code=None, is_custom=False, is_sparse=False) .. py:function:: paddle.fluid.layers.hsigmoid(input, label, num_classes, param_attr=None, bias_attr=None, name=None, path_table=None, path_code=None, is_custom=False, is_sparse=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
im2sequence im2sequence
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.im2sequence(input, filter_size=1, stride=1, padding=0, input_image_size=None, out_stride=1, name=None) .. py:function:: paddle.fluid.layers.im2sequence(input, filter_size=1, stride=1, padding=0, input_image_size=None, out_stride=1, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
inplace_abn inplace_abn
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.inplace_abn(input, act=None, is_test=False, momentum=0.9, epsilon=1e-05, param_attr=None, bias_attr=None, data_layout='NCHW', name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False, use_global_stats=False, act_alpha=1.0) .. py:function:: paddle.fluid.layers.inplace_abn(input, act=None, is_test=False, momentum=0.9, epsilon=1e-05, param_attr=None, bias_attr=None, data_layout='NCHW', name=None, moving_mean_name=None, moving_variance_name=None, do_model_average_for_mean_and_var=False, use_global_stats=False, act_alpha=1.0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
instance_norm instance_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.instance_norm(input, epsilon=1e-05, param_attr=None, bias_attr=None, name=None) .. py:function:: paddle.fluid.layers.instance_norm(input, epsilon=1e-05, param_attr=None, bias_attr=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
layer_norm layer_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.layer_norm(input, scale=True, shift=True, begin_norm_axis=1, epsilon=1e-05, param_attr=None, bias_attr=None, act=None, name=None) .. py:function:: paddle.fluid.layers.layer_norm(input, scale=True, shift=True, begin_norm_axis=1, epsilon=1e-05, param_attr=None, bias_attr=None, act=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
linear_chain_crf linear_chain_crf
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.linear_chain_crf(input, label, param_attr=None, length=None) .. py:function:: paddle.fluid.layers.linear_chain_crf(input, label, param_attr=None, length=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
lstm lstm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.lstm(input, init_h, init_c, max_len, hidden_size, num_layers, dropout_prob=0.0, is_bidirec=False, is_test=False, name=None, default_initializer=None, seed=-1) .. py:function:: paddle.fluid.layers.lstm(input, init_h, init_c, max_len, hidden_size, num_layers, dropout_prob=0.0, is_bidirec=False, is_test=False, name=None, default_initializer=None, seed=-1)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
lstm_unit lstm_unit
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.lstm_unit(x_t, hidden_t_prev, cell_t_prev, forget_bias=0.0, param_attr=None, bias_attr=None, name=None) .. py:function:: paddle.fluid.layers.lstm_unit(x_t, hidden_t_prev, cell_t_prev, forget_bias=0.0, param_attr=None, bias_attr=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
multi_box_head multi_box_head
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.multi_box_head(inputs, image, base_size, num_classes, aspect_ratios, min_ratio=None, max_ratio=None, min_sizes=None, max_sizes=None, steps=None, step_w=None, step_h=None, offset=0.5, variance=[0.1, 0.1, 0.2, 0.2], flip=True, clip=False, kernel_size=1, pad=0, stride=1, name=None, min_max_aspect_ratios_order=False) .. py:function:: paddle.fluid.layers.multi_box_head(inputs, image, base_size, num_classes, aspect_ratios, min_ratio=None, max_ratio=None, min_sizes=None, max_sizes=None, steps=None, step_w=None, step_h=None, offset=0.5, variance=[0.1, 0.1, 0.2, 0.2], flip=True, clip=False, kernel_size=1, pad=0, stride=1, name=None, min_max_aspect_ratios_order=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
nce nce
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.nce(input, label, num_total_classes, sample_weight=None, param_attr=None, bias_attr=None, num_neg_samples=None, name=None, sampler='uniform', custom_dist=None, seed=0, is_sparse=False) .. py:function:: paddle.fluid.layers.nce(input, label, num_total_classes, sample_weight=None, param_attr=None, bias_attr=None, num_neg_samples=None, name=None, sampler='uniform', custom_dist=None, seed=0, is_sparse=False)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
prelu prelu
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.prelu(x, mode, param_attr=None, name=None) .. py:function:: paddle.fluid.layers.prelu(x, mode, param_attr=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
py_func py_func
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.py_func(func, x, out, backward_func=None, skip_vars_in_backward_input=None) .. py:function:: paddle.fluid.layers.py_func(func, x, out, backward_func=None, skip_vars_in_backward_input=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
py_reader py_reader
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.py_reader(capacity, shapes, dtypes, lod_levels=None, name=None, use_double_buffer=True) .. py:function:: paddle.fluid.layers.py_reader(capacity, shapes, dtypes, lod_levels=None, name=None, use_double_buffer=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
read_file read_file
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.read_file(reader) .. py:function:: paddle.fluid.layers.read_file(reader)
......
...@@ -4,7 +4,7 @@ rnn ...@@ -4,7 +4,7 @@ rnn
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:method:: paddle.fluid.layers.rnn(cell, inputs, initial_states=None, sequence_length=None, time_major=False, is_reverse=False, **kwargs) .. py:method:: paddle.fluid.layers.rnn(cell, inputs, initial_states=None, sequence_length=None, time_major=False, is_reverse=False, **kwargs)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
row_conv row_conv
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.row_conv(input, future_context_size, param_attr=None, act=None) .. py:function:: paddle.fluid.layers.row_conv(input, future_context_size, param_attr=None, act=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_concat sequence_concat
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_concat(input, name=None) .. py:function:: paddle.fluid.layers.sequence_concat(input, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_conv sequence_conv
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_conv(input, num_filters, filter_size=3, filter_stride=1, padding=True, padding_start=None, bias_attr=None, param_attr=None, act=None, name=None) .. py:function:: paddle.fluid.layers.sequence_conv(input, num_filters, filter_size=3, filter_stride=1, padding=True, padding_start=None, bias_attr=None, param_attr=None, act=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_enumerate sequence_enumerate
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_enumerate(input, win_size, pad_value=0, name=None) .. py:function:: paddle.fluid.layers.sequence_enumerate(input, win_size, pad_value=0, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_expand_as sequence_expand_as
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_expand_as(x, y, name=None) .. py:function:: paddle.fluid.layers.sequence_expand_as(x, y, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_expand sequence_expand
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_expand(x, y, ref_level=-1, name=None) .. py:function:: paddle.fluid.layers.sequence_expand(x, y, ref_level=-1, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_first_step sequence_first_step
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_first_step(input) .. py:function:: paddle.fluid.layers.sequence_first_step(input)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_last_step sequence_last_step
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_last_step(input) .. py:function:: paddle.fluid.layers.sequence_last_step(input)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_pad sequence_pad
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_pad(x,pad_value,maxlen=None,name=None) .. py:function:: paddle.fluid.layers.sequence_pad(x,pad_value,maxlen=None,name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_pool sequence_pool
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_pool(input, pool_type, is_test=False, pad_value=0.0) .. py:function:: paddle.fluid.layers.sequence_pool(input, pool_type, is_test=False, pad_value=0.0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_reshape sequence_reshape
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_reshape(input, new_dim) .. py:function:: paddle.fluid.layers.sequence_reshape(input, new_dim)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_scatter sequence_scatter
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_scatter(input, index, updates, name=None) .. py:function:: paddle.fluid.layers.sequence_scatter(input, index, updates, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_slice sequence_slice
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_slice(input, offset, length, name=None) .. py:function:: paddle.fluid.layers.sequence_slice(input, offset, length, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_softmax sequence_softmax
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_softmax(input, use_cudnn=False, name=None) .. py:function:: paddle.fluid.layers.sequence_softmax(input, use_cudnn=False, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_unpad sequence_unpad
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.sequence_unpad(x, length, name=None) .. py:function:: paddle.fluid.layers.sequence_unpad(x, length, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
spectral_norm spectral_norm
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.spectral_norm(weight, dim=0, power_iters=1, eps=1e-12, name=None) .. py:function:: paddle.fluid.layers.spectral_norm(weight, dim=0, power_iters=1, eps=1e-12, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
switch_case switch_case
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.switch_case(branch_index, branch_fns, default=None, name=None) .. py:function:: paddle.fluid.layers.switch_case(branch_index, branch_fns, default=None, name=None)
......
...@@ -4,7 +4,7 @@ while_loop ...@@ -4,7 +4,7 @@ while_loop
____________________________________ ____________________________________
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.layers.while_loop(cond, body, loop_vars, is_test=False, name=None) .. py:function:: paddle.fluid.layers.while_loop(cond, body, loop_vars, is_test=False, name=None)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
glu glu
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.nets.glu(input, dim=-1) .. py:function:: paddle.fluid.nets.glu(input, dim=-1)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
img_conv_group img_conv_group
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.nets.img_conv_group(input, conv_num_filter, pool_size, conv_padding=1, conv_filter_size=3, conv_act=None, param_attr=None, conv_with_batchnorm=False, conv_batchnorm_drop_rate=0.0, pool_stride=1, pool_type='max', use_cudnn=True) .. py:function:: paddle.fluid.nets.img_conv_group(input, conv_num_filter, pool_size, conv_padding=1, conv_filter_size=3, conv_act=None, param_attr=None, conv_with_batchnorm=False, conv_batchnorm_drop_rate=0.0, pool_stride=1, pool_type='max', use_cudnn=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
scaled_dot_product_attention scaled_dot_product_attention
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.nets.scaled_dot_product_attention(queries, keys, values, num_heads=1, dropout_rate=0.0) .. py:function:: paddle.fluid.nets.scaled_dot_product_attention(queries, keys, values, num_heads=1, dropout_rate=0.0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
sequence_conv_pool sequence_conv_pool
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.nets.sequence_conv_pool(input, num_filters, filter_size, param_attr=None, act='sigmoid', pool_type='max', bias_attr=None) .. py:function:: paddle.fluid.nets.sequence_conv_pool(input, num_filters, filter_size, param_attr=None, act='sigmoid', pool_type='max', bias_attr=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
simple_img_conv_pool simple_img_conv_pool
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.nets.simple_img_conv_pool(input, num_filters, filter_size, pool_size, pool_stride, pool_padding=0, pool_type='max', global_pooling=False, conv_stride=1, conv_padding=0, conv_dilation=1, conv_groups=1, param_attr=None, bias_attr=None, act=None, use_cudnn=True) .. py:function:: paddle.fluid.nets.simple_img_conv_pool(input, num_filters, filter_size, pool_size, pool_stride, pool_padding=0, pool_type='max', global_pooling=False, conv_stride=1, conv_padding=0, conv_dilation=1, conv_groups=1, param_attr=None, bias_attr=None, act=None, use_cudnn=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DGCMomentumOptimizer DGCMomentumOptimizer
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.DGCMomentumOptimizer(learning_rate, momentum, rampup_begin_step, rampup_step=1, sparsity=[0.999], use_nesterov=False, local_grad_clip_norm=None, num_trainers=None, regularization=None, grad_clip=None, name=None) .. py:class:: paddle.fluid.optimizer.DGCMomentumOptimizer(learning_rate, momentum, rampup_begin_step, rampup_step=1, sparsity=[0.999], use_nesterov=False, local_grad_clip_norm=None, num_trainers=None, regularization=None, grad_clip=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExponentialMovingAverage ExponentialMovingAverage
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.ExponentialMovingAverage(decay=0.999, thres_steps=None, name=None) .. py:class:: paddle.fluid.optimizer.ExponentialMovingAverage(decay=0.999, thres_steps=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
LookaheadOptimizer LookaheadOptimizer
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.LookaheadOptimizer(inner_optimizer, alpha=0.5, k=5) .. py:class:: paddle.fluid.optimizer.LookaheadOptimizer(inner_optimizer, alpha=0.5, k=5)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ModelAverage ModelAverage
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.ModelAverage(average_window_rate, min_average_window=10000, max_average_window=10000, regularization=None, name=None) .. py:class:: paddle.fluid.optimizer.ModelAverage(average_window_rate, min_average_window=10000, max_average_window=10000, regularization=None, name=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
PipelineOptimizer PipelineOptimizer
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.PipelineOptimizer(optimizer, cut_list=None, place_list=None, concurrency_list=None, queue_size=30, sync_steps=1, start_cpu_core_id=0) .. py:class:: paddle.fluid.optimizer.PipelineOptimizer(optimizer, cut_list=None, place_list=None, concurrency_list=None, queue_size=30, sync_steps=1, start_cpu_core_id=0)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
RecomputeOptimizer RecomputeOptimizer
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.optimizer.RecomputeOptimizer(optimizer) .. py:class:: paddle.fluid.optimizer.RecomputeOptimizer(optimizer)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DistributeTranspilerConfig DistributeTranspilerConfig
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.transpiler.DistributeTranspilerConfig .. py:class:: paddle.fluid.transpiler.DistributeTranspilerConfig
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
DistributeTranspiler DistributeTranspiler
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.transpiler.DistributeTranspiler (config=None) .. py:class:: paddle.fluid.transpiler.DistributeTranspiler (config=None)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
HashName HashName
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.transpiler.HashName(pserver_endpoints) .. py:class:: paddle.fluid.transpiler.HashName(pserver_endpoints)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
RoundRobin RoundRobin
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:class:: paddle.fluid.transpiler.RoundRobin(pserver_endpoints) .. py:class:: paddle.fluid.transpiler.RoundRobin(pserver_endpoints)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
memory_optimize memory_optimize
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.transpiler.memory_optimize(input_program, skip_opt_set=None, print_log=False, level=0, skip_grads=True) .. py:function:: paddle.fluid.transpiler.memory_optimize(input_program, skip_opt_set=None, print_log=False, level=0, skip_grads=True)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
release_memory release_memory
------------------------------- -------------------------------
:api_attr: 声明式编程模式(静态图) :api_attr: 声明式编程(静态图)专用API
.. py:function:: paddle.fluid.transpiler.release_memory(input_program, skip_opt_set=None) .. py:function:: paddle.fluid.transpiler.release_memory(input_program, skip_opt_set=None)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册