pytorch/torch/csrc/lazy/ts_backend/config.cpp
Will Constable 6ddaf3bd37 [LT] Upstream TsNode, TsNodeLowering, TsLoweringContext (#68154)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68154

Test Plan: added a basic test; cover more by using lazy_tensor_staging tests

Reviewed By: Krovatkin, alanwaketan

Differential Revision: D32224303

fbshipit-source-id: ac3e1161229b8ae60fdb15ffa72e17072b595914
2021-11-12 12:57:20 -08:00

8 lines
240 B
C++

#include <torch/csrc/lazy/core/config.h>
// TODO(whc) either deprecate this, or use it for all shape inference
C10_DEFINE_int(
torch_lazy_ts_shape_cache_size,
4096,
"Set the size for the shape cache used for shape inference");