pytorch/caffe2/python/operator_test
Yiming Wu dc5a34200f SumReduceLikeOp CPU/GPU implementation
Summary:
1. CPU/GPU implementation of SumReduceLikeOp.

[SRLOp](matrix A, matrix B) -> C

where C is of the same shape as B, its value would be the reduce sum of corresponding A element.

2. Make SumReduceLikeOp (part of) the gradient of Add/Mul/Sub and provide unittests

===Update for Translation Team===
3. Passed Tests:
$ buck test caffe2/caffe2/python/operator_test:recurrent_network_test
$ buck test fblearner/flow/tests/langtech/translation/neural_mt:seq2seq_model_caffe2
$ buck test fblearner/flow/tests/langtech/translation/neural_mt:seq2seq_ensemble_beam_model_caffe2

Reviewed By: Yangqing

Differential Revision: D4711302

fbshipit-source-id: 0865abde871b3046b367599731593dae03f0775a
2017-04-07 15:19:24 -07:00
..
activation_ops_test.py Caffe2: CUDA implementation for LeakyReluOp 2017-03-28 08:48:25 -07:00
atomic_ops_test.py
checkpoint_test.py
conv_test.py Conv-ND NCHW CUP/CUDA implementation 2017-03-20 14:01:07 -07:00
conv_transpose_test.py
copy_ops_test.py Reset workspace after each test in copy_ops_test 2017-03-24 12:20:34 -07:00
cosine_embedding_criterion_op_test.py
counter_ops_test.py
crf_test.py CRF layer in caffe2 2017-03-23 22:02:02 -07:00
cross_entropy_ops_test.py
dataset_ops_test.py TensorVectorSizeOp 2017-04-07 14:46:19 -07:00
duplicate_operands_test.py
elementwise_op_broadcast_test.py SumReduceLikeOp CPU/GPU implementation 2017-04-07 15:19:24 -07:00
elementwise_ops_test.py
emptysample_ops_test.py
extend_tensor_op_test.py
fc_operator_test.py
filler_ops_test.py
gather_ops_test.py Add GatherOp for GPU, and update its tests. 2017-03-31 13:20:09 -07:00
gather_ranges_op_test.py
given_tensor_fill_op_test.py Fixes for ops without a CUDA backend 2017-03-29 14:36:09 -07:00
group_conv_test.py
hsm_test.py
index_ops_test.py
instance_norm_test.py
loss_ops_test.py Caffe2: consolidate AveragedLoss with SumElementsOp 2017-04-06 10:35:01 -07:00
margin_ranking_criterion_op_test.py
matmul_op_test.py BatchMatMulOp: use cuBLAS batched strided gemm for CUDA 2017-03-28 11:54:09 -07:00
mkl_conv_op_test.py
mkl_packed_fc_op_test.py
mkl_speed_test.py
momentum_sgd_test.py SparseMomentumSGDUpdateOp 2017-03-28 07:47:46 -07:00
mpi_test.py
one_hot_ops_test.py
pack_ops_test.py Registering GPU version of PackSegments using GPUFallbackOp 2017-03-24 16:01:53 -07:00
pad_test.py Support cropping with negative pad sizes in PadImage 2017-04-03 23:47:54 -07:00
partition_ops_test.py
piecewise_linear_transform_test.py
pooling_test.py
pow_op_test.py
python_op_test.py
rank_loss_operator_test.py
record_queue_test.py
recurrent_network_test.py RecurrentNetwork and variable length links 2017-04-04 19:46:53 -07:00
reduce_ops_test.py ReduceBack{Sum|Mean}Op CPU & GPU implementation 2017-03-13 16:19:58 -07:00
relu_op_test.py
reshape_ops_test.py Allow test discovery in caffe2/python/ 2017-03-14 18:16:41 -07:00
resize_op_test.py Add ResizeNearest operator 2017-03-16 18:49:01 -07:00
segment_ops_test.py Allow test discovery in caffe2/python/ 2017-03-14 18:16:41 -07:00
sequence_ops_test.py add gpu support for caffe2-seq2seq 2017-03-17 05:19:14 -07:00
shape_inference_test.py Bugfix: type not being set when inferring types+shapes 2017-03-15 18:48:40 -07:00
softmax_ops_test.py memory-saving only_loss argument for SoftmaxWithLoss 2017-04-06 13:04:31 -07:00
sparse_gradient_checker_test.py Fixes for ops without a CUDA backend 2017-03-29 14:36:09 -07:00
sparse_ops_test.py
spatial_bn_op_test.py
square_root_divide_op_test.py
stats_ops_test.py
string_ops_test.py
text_file_reader_test.py
tile_op_test.py
top_k_test.py Implement TopK op in caffe2 2017-03-16 17:32:20 -07:00
unique_uniform_fill_op_test.py
utility_ops_test.py Caffe2: consolidate AveragedLoss with SumElementsOp 2017-04-06 10:35:01 -07:00