mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Add cost inference for MulGradient operator
Summary: Add cost inference for MulGradient operator; also whitelist MulGradient in COMPUTE_OP_TYPES in dense_perf_estimation Test Plan: buck run //caffe2/caffe2/python/operator_test:elementwise_ops_test Reviewed By: CrazySherman Differential Revision: D27614003 fbshipit-source-id: 30901e5e2b6ce7e2183c2362d1bf9f895046cf55
This commit is contained in:
parent
3fbca31be3
commit
ff1498e668
|
|
@ -320,7 +320,8 @@ OPERATOR_SCHEMA(MulGradient)
|
||||||
.NumInputs(3)
|
.NumInputs(3)
|
||||||
.NumOutputs(2)
|
.NumOutputs(2)
|
||||||
.TensorInferenceFunction(ElementwiseGradientOpShapeInference)
|
.TensorInferenceFunction(ElementwiseGradientOpShapeInference)
|
||||||
.AllowInplace({{0, 0}, {0, 1}});
|
.AllowInplace({{0, 0}, {0, 1}})
|
||||||
|
.CostInferenceFunction(PointwiseCostInference<2>);
|
||||||
|
|
||||||
OPERATOR_SCHEMA(Div)
|
OPERATOR_SCHEMA(Div)
|
||||||
.NumInputs(2)
|
.NumInputs(2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user