mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
[Reland] Elimates c10::guts::to_string (#108748)
Reland of PR #108480, after relanding another blocking PR. Pull Request resolved: https://github.com/pytorch/pytorch/pull/108748 Approved by: https://github.com/huydhn
This commit is contained in:
@ -182,8 +182,7 @@ TEST(OptimTest, OptimizerAccessors) {
|
||||
|
||||
// test for state() with non-const reference return
|
||||
auto& state_ = static_cast<AdagradParamState&>(
|
||||
*(optimizer
|
||||
.state()[c10::guts::to_string(params_1[0].unsafeGetTensorImpl())]));
|
||||
*(optimizer.state()[params_1[0].unsafeGetTensorImpl()]));
|
||||
state_.step(state_.step() + 1);
|
||||
|
||||
const auto& optimizer_ = Adagrad(params, options);
|
||||
|
Reference in New Issue
Block a user