pytorch/caffe2/python/operator_test
Bram Wasti aa56a1211d
Update from facebook (#6871)
* Track checkpoint performance in scuba

As title.

* [C2/CUDA]: fix cross entropy sigmoid with logits

when adding log_d_trick, I forgot to add it to the cuda impl; this diff fixes
it.

* Back out "[caffe2] Unregister MKL fallbacks for NCHW conversions"

Original commit changeset: 8918dd40205a
Will land after @jongsoo's diff https://phabricator.intern.facebook.com/D7596315 lands

* [Easy][C2] Don't add blob to external outputs from output_record if it's already external output

As desc.

* On Mobile phones, call GlobalInit with no arguments in predictor in case we need to perform initialization

FACEBOOK:

The QPL logger needs the initialization code. In the past, the initialization code is put in the pipeline calling Caffe2. However, those places become obsolete quickly, as the product teams change places to call Caffe2 from time to time. We also need to track which teams use Caffe2 so that we can put the initialization code there.

With this diff, the initialization code is put in the predictor constructor, only enabled for mobile phones. This way, we can always enable QPL logging.

Once we do this, we can check how many times Caffe2 inference is called in production, and which models are more popular in production. This way, we can prioritize our effort supporting those models.

Will clean up the old code calling the init in the product in a separate diff.

* add padding op for sparse length tensor

to pad length-based sparse tensor with padding_value

* Add conv_op with cudaconvnet engine

Add conv_op with cudaconvnet engine

* [numa] Fix simple NUMA copy benchmark

Move XavierFill into init_net and also compute BW

* call roundf (device function) instead of round (host function)

* [caffe2_benchmark][observer] Make caffe2_benchmark use its own observer

1. Add ClearGlobalNetObservers()
2. Make caffe2_benchmark use its own observer and observer_reporter

* [detectron] Use roundf instead of round in the detectron module ops

* allow K larger than number of elements in top k op

one use case is to use this op together with PackSegments for sparse tensors, where the number of elements in each slice is not statistically defined.

* add ChannelShuffle DNNLOWP op

* fixup math_cpu.cc break
2018-04-23 15:01:56 -07:00
..
activation_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
adagrad_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
adam_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
apmeter_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
arg_max_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
arg_ops_test.py [caffe2] Update math functions with params on host. (#6602) 2018-04-14 21:41:41 -07:00
assert_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
atomic_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
basic_rnn_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
batch_box_cox_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
batch_sparse_to_dense_op_test.py
bbox_transform_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
blobs_queue_db_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
boolean_mask_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
boolean_unmask_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
cast_op_test.py
ceil_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
channel_backprop_stats_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
channel_shuffle_test.py ChannelShuffle with NHWC layout (#6667) 2018-04-18 19:13:45 -07:00
channel_stats_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
checkpoint_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
clip_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
clip_tensor_op_test.py Add gradient clipping (#2452) 2018-03-27 15:10:15 -07:00
collect_and_distribute_fpn_rpn_proposals_op_test.py [Caffe2] Enhance test for CollectAndDistributeOp (#6693) 2018-04-18 13:19:05 -07:00
concat_split_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
conditional_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
conv_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
conv_transpose_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
copy_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
cosine_embedding_criterion_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
counter_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
crf_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
cross_entropy_ops_test.py [Caffe2] Changes done inside Facebook (#6378) 2018-04-10 21:11:43 -07:00
cudnn_recurrent_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
dataset_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
deform_conv_test.py
distance_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
dropout_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
duplicate_operands_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
elementwise_linear_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
elementwise_logical_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
elementwise_op_broadcast_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
elementwise_ops_test.py [Caffe2] Changes done inside Facebook (#6378) 2018-04-10 21:11:43 -07:00
emptysample_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
enforce_finite_op_test.py Update from Facebook (#6692) 2018-04-17 23:36:40 -07:00
extend_tensor_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
fc_operator_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
filler_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
find_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
flatten_op_test.py
flexible_top_k_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
floor_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
gather_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
gather_ranges_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
given_tensor_fill_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
glu_op_test.py
group_conv_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
group_norm_op_test.py [Caffe2] Changes done inside Facebook (#6378) 2018-04-10 21:11:43 -07:00
gru_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
hsm_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
im2col_col2im_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
image_input_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
index_hash_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
index_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
instance_norm_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
jsd_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
key_split_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
lars_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
layer_norm_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
lc_operator_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
leaky_relu_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
learning_rate_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
lengths_pad_op_test.py Update from facebook (#6871) 2018-04-23 15:01:56 -07:00
lengths_tile_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
lengths_top_k_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
listwise_l2r_operator_test.py Update caffe2 from facebook 4f527ef46abf (#2234) 2018-03-12 12:22:59 -07:00
load_save_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
loss_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
lpnorm_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
map_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
margin_ranking_criterion_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
math_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
matmul_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mean_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
merge_id_lists_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mkl_conv_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mkl_packed_fc_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mkl_speed_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mod_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
momentum_sgd_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
mpi_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
negate_gradient_op_test.py
ngram_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
normalize_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
one_hot_ops_test.py [easy] fix comments 2018-03-30 21:00:44 -07:00
onnx_while_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
pack_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
pack_rnn_sequence_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
pad_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
partition_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
percentile_op_test.py Adding the Percentile op & UT 2018-02-05 16:08:00 -08:00
piecewise_linear_transform_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
pooling_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
prepend_dim_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
python_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
rank_loss_operator_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
rebatching_queue_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
record_queue_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
recurrent_net_executor_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
recurrent_network_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
reduce_ops_test.py [caffe2] Add ReduceMinOp and ReduceMaxOp (#6744) 2018-04-19 00:22:23 -07:00
reduction_ops_test.py Add SumElementsInt operator 2018-03-27 18:10:39 -07:00
relu_op_test.py [caffe2] Fbcode to GitHub sync (#6208) 2018-04-02 16:35:27 -07:00
reshape_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
resize_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
rmac_regions_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
rnn_cell_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
segment_ops_test.py [Caffe2] Changes done inside Facebook (#6378) 2018-04-10 21:11:43 -07:00
selu_op_test.py
sequence_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
shape_inference_test.py Update from facebook (#6871) 2018-04-23 15:01:56 -07:00
sinusoid_position_encoding_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
softmax_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
softplus_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
sparse_gradient_checker_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
sparse_lengths_sum_benchmark.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
sparse_normalize_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
sparse_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
sparse_to_dense_mask_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
spatial_bn_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
specialized_segment_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
square_root_divide_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
stats_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
string_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
text_file_reader_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
thresholded_relu_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
tile_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
top_k_test.py Update from facebook (#6871) 2018-04-23 15:01:56 -07:00
transpose_op_test.py [caffe2] Update math functions with params on host. (#6602) 2018-04-14 21:41:41 -07:00
unique_ops_test.py [Caffe2] Changes done inside Facebook (#6378) 2018-04-10 21:11:43 -07:00
unique_uniform_fill_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
utility_ops_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
video_input_op_test.py Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
weighted_multi_sample_test.py Only run WeightedMultiSample test on CPU and not GPU. 2018-03-20 13:34:22 -07:00
weighted_sample_test.py
weighted_sum_test.py