pytorch/caffe2/python
Brian Lan e2bd3cfc8b Add __sub__ function for schema.Struct
Summary:
This is for the ease of removing the common fields of a struct from another.
For example,
  s1 = Struct(
      ('a', Scalar()),
      ('b', Scalar()),
  )
  s2 = Struct(('a', Scalar()))
  s1 - s2 == Struct(('b', Scalar()))

More examples are provided in the code comments.

Differential Revision: D5299277

fbshipit-source-id: 7008586ffdc8e24e1eccc8757da70330c4d90370
2017-06-28 11:24:01 -07:00
..
docs fixed operators schema output to work from only this file for OSS 2017-06-02 13:47:25 -07:00
examples Fixed typo 2017-06-23 14:02:40 -07:00
helpers Conv frontend: checking engine and use_cudnn 2017-06-27 09:47:48 -07:00
layers Partial eval layers 2017-06-28 00:36:40 -07:00
mint
mkl Deprecate CNNModelHelper - Inception() 2017-06-15 14:03:27 -07:00
modeling Skip fp16 initializer test for CPU-only builds 2017-06-19 12:21:25 -07:00
models Revert D5288993: Memonger Graph Equality into Memonger 2017-06-21 13:45:50 -07:00
operator_test Tests: fix test_convolution_sync() 2017-06-27 18:07:04 -07:00
predictor Allow specifying device to load_from_db() 2017-06-14 14:32:24 -07:00
rnn CuDNN comparison mode 2017-05-20 15:19:43 -07:00
_import_c_extension.py
attention.py Unrolled test for AttentionCell 2017-06-25 17:21:24 -07:00
brew.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
brew_test.py Fixing broken Python tests 2017-06-08 13:34:46 -07:00
caffe_translator.py Fixed typo caffe_translator.py, fixes bug #397 2017-05-24 12:18:32 -07:00
caffe_translator_test.py
checkpoint.py
checkpoint_test.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
CMakeLists.txt
cnn.py cnnmodelhelper deprecate warning 2017-05-18 23:35:26 -07:00
context.py
context_test.py
control.py
control_test.py
convnet_benchmarks.py
convnet_benchmarks_test.py
core.py single trainer hybrid device 2017-06-27 22:06:30 -07:00
core_gradients_test.py Revert uuid change to OperatorDef protobuf 2017-06-19 16:47:31 -07:00
core_test.py single trainer hybrid device 2017-06-27 22:06:30 -07:00
crf.py Deprecate CNNModelHelper in python/crf.py 2017-06-14 08:49:27 -07:00
data_parallel_model.py Refactor data_parallel_model to take advantage of Gloo broadcast op in broadcasting across machines and GPUs in one operation 2017-06-27 19:35:24 -07:00
data_parallel_model_test.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
data_workers.py fix a rare race condition by initializing scratch blobs beforehand 2017-06-26 10:18:18 -07:00
data_workers_test.py fix a rare race condition by initializing scratch blobs beforehand 2017-06-26 10:18:18 -07:00
dataio.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
dataio_test.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
dataset.py Add random shuffle through the data to the benchmark workflow 2017-06-16 13:22:46 -07:00
db_test.py String-related fixes for Python 3 2017-05-26 16:04:32 -07:00
device_checker.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
dyndep.py
empty.so
experiment_util.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
extension_loader.py
gradient_check_test.py Don't require pydot for Python tests 2017-06-19 23:02:00 -07:00
gradient_checker.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
hsm_util.py
hypothesis_test.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
hypothesis_test_util.py Allow assertValidationChecks to take init_net 2017-06-22 16:02:43 -07:00
layer_model_helper.py single trainer hybrid device 2017-06-27 22:06:30 -07:00
layer_model_instantiator.py Remove map() and filter() in favor of comprehensions 2017-05-30 15:32:58 -07:00
layer_test_util.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
layers_test.py add support for weight in batch_softmax_loss 2017-06-21 10:32:15 -07:00
load_save_test.py
lstm_benchmark.py Static RNN: gpu support and lstm_benchmark integration 2017-06-16 11:31:43 -07:00
memonger.py fix + verification for inplace blobs 2017-06-27 13:51:03 -07:00
memonger_test.py Revert D5288993: Memonger Graph Equality into Memonger 2017-06-21 13:45:50 -07:00
mkl_test_util.py
model_device_test.py Deprecate CNNModelHelper in caffe2/python/model_device_test.py 2017-06-22 15:37:17 -07:00
model_helper.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
mpi_python.cc
muji.py Fixes range/xrange for Python 3 2017-06-07 00:04:26 -07:00
muji_test.py Fixes range/xrange for Python 3 2017-06-07 00:04:26 -07:00
net_builder.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
net_builder_test.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
net_drawer.py
net_printer.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
net_printer_test.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
optimizer.py single trainer hybrid device 2017-06-27 22:06:30 -07:00
optimizer_test.py add_weight_decay + restore weight decay to resnet50_trainer 2017-06-02 14:16:56 -07:00
optimizer_test_util.py Fp16 training initializers 2017-06-01 08:34:46 -07:00
parallelize_gpu_bmuf_distributed_test.py Add distributed BMUF implementation. 2017-06-21 16:18:11 -07:00
pipeline.py Enable runtime cloning of tasks. 2017-06-21 03:18:20 -07:00
predictor_constants.py
pybind_state.cc Operator python stacktraces, attempt 2 2017-06-25 19:32:58 -07:00
pybind_state.h Run python op builder at op creation time 2017-06-13 16:29:22 -07:00
pybind_state_gpu.cc
pybind_state_mkl.cc
python_op_test.py Run python op builder at op creation time 2017-06-13 16:29:22 -07:00
queue_util.py
record_queue.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
recurrent.py Static RNN 2017-06-08 17:48:48 -07:00
rnn_cell.py Unrolled test for AttentionCell 2017-06-25 17:21:24 -07:00
schema.py Add __sub__ function for schema.Struct 2017-06-28 11:24:01 -07:00
schema_test.py Add __sub__ function for schema.Struct 2017-06-28 11:24:01 -07:00
scope.py quick fix future issue with brew/core/schema/workspace/scope/utils.py 2017-06-05 12:01:48 -07:00
scope_test.py
session.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
session_test.py
sparse_to_dense_mask_test.py String-related fixes for Python 3 2017-05-26 16:04:32 -07:00
task.py Allow tasks/execution_steps to be cloned at runtime 2017-06-20 22:32:07 -07:00
test_util.py
text_file_reader.py
timeout_guard.py
toy_regression_test.py
tt_core.py Fix a few typos and grammars in comment 2017-06-14 18:22:39 -07:00
tt_core_test.py
utils.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00
visualize.py
workspace.py Operator python stacktraces, attempt 2 2017-06-25 19:32:58 -07:00
workspace_test.py Core unit test fixes for Python 3 2017-06-23 13:22:16 -07:00