pytorch/caffe2
Hao Lu c0267c6845 [caffe2] Support data types in shape hints (#45110)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45110

A recent change in DSNN quantizes the ad embedding to 8 bits. Ad embeddings are part of the inputs to the DSNN merge net. To correctly pass shape hints of input tensors including quantized ad embeddings, we need to be able to annotate the data types in shape hints.

A bit on the corner cases, if type is omitted or not a valid type, e.g., white spaces, instead of throwing an exception, I decided to return the default type, float.

Test Plan:
```
buck test caffe2/caffe2/fb/opt:shape_info_utils_test
```

Reviewed By: yinghai

Differential Revision: D23834091

fbshipit-source-id: 5e072144a7a7ff4b5126b618062dfc4041851dd3
2020-09-22 17:49:33 -07:00
..
contrib adjust shape inference in sls tests (#44936) 2020-09-21 22:09:55 -07:00
core Compile less legacy code when BUILD_CAFFE2 is set to False (take 2) (#44453) 2020-09-11 16:27:47 -07:00
cuda_rtc
db
distributed
experiments
ideep
image
mobile
mpi
observers
onnx
operators [caffe2] add cost inference for FusedFakeQuantFC and FusedFakeQuantFCGradient (#44840) 2020-09-17 14:07:17 -07:00
opt [caffe2] Support data types in shape hints (#45110) 2020-09-22 17:49:33 -07:00
perfkernels [caffe2] Replace embedding conversion ops with fbgemm functions (#44843) 2020-09-22 11:57:01 -07:00
predictor
proto Compile less legacy code when BUILD_CAFFE2 is set to False (take 2) (#44453) 2020-09-11 16:27:47 -07:00
python Change typo 'momemtum' to 'momentum' (#45045) 2020-09-21 19:03:26 -07:00
quantization
queue Revert D23236088: [pytorch][PR] [caffe2] adds Cancel to SafeDequeueBlobsOp and SafeEnqueueBlobsOp 2020-09-16 23:32:50 -07:00
serialize
sgd [dper3] Create dper LearningRate low-level module (#44639) 2020-09-22 08:26:07 -07:00
share
test
transforms
utils Optimize Scale function (#44913) 2020-09-18 14:31:33 -07:00
video
.clang-format
__init__.py
c2_aten_srcs.bzl
CMakeLists.txt Extract rpc/tensorpipe_utils.{cpp,h} from rpc/utils.{cpp,h} (#44803) 2020-09-18 13:51:43 -07:00
README.md
release-notes.md
requirements.txt
VERSION_NUMBER

Caffe2

Jenkins Build Status

Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.

Questions and Feedback

Please use GitHub issues (https://github.com/pytorch/pytorch/issues) to ask questions, report bugs, and request new features.

Further Resources on Caffe2.ai