| 970 | } |
| 971 | |
| 972 | void StaticInferManagerImpl::update_mutable_src_shape(Tag dest) { |
| 973 | MGB_LOCK_GUARD(m_mtx); |
| 974 | MGB_TRY { |
| 975 | auto&& container = get_tag_trait_container(dest); |
| 976 | auto handle = container.shape; |
| 977 | if (handle && handle->infer_type() == InferType::RT_STATIC && |
| 978 | handle->deps().empty()) { |
| 979 | dest->shape(handle->infer(true, false)->shape()); |
| 980 | } |
| 981 | } |
| 982 | MGB_CATCH(MegBrainError & exc, { update_rethrow_exc(dest, exc); }) |
| 983 | } |
| 984 |
no test coverage detected