Skip to content

Commit

Permalink
Deprecate GPU approx_rowwise_adagrad_with_weight_decay (pytorch#2253)
Browse files Browse the repository at this point in the history
Summary:

Deprecate `approx_rowwise_adagrad_with_weight_decay` GPU kernel

Differential Revision: D52574861
  • Loading branch information
Wang Zhou authored and facebook-github-bot committed Jan 8, 2024
1 parent 40ae484 commit 7eaa1e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fbgemm_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ set(GPU_ONLY_OPTIMIZERS
partial_rowwise_adam
partial_rowwise_lamb
lars_sgd
approx_rowwise_adagrad_with_weight_decay
none)

set(DEPRECATED_OPTIMIZERS
approx_sgd
approx_rowwise_adagrad
approx_rowwise_adagrad_with_counter
approx_rowwise_adagrad_with_weight_decay
rowwise_adagrad_with_weight_decay)

set(ALL_OPTIMIZERS
Expand Down
3 changes: 2 additions & 1 deletion fbgemm_gpu/codegen/embedding_common_code_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def rowwise_adagrad_with_weight_decay() -> Dict[str, Any]:
}


# Deprecated, to be cleaned up
def approx_rowwise_adagrad_with_weight_decay() -> Dict[str, Any]:
rowwise_adagrad_with_weight_decay_args = rowwise_adagrad_with_weight_decay()

Expand Down Expand Up @@ -740,7 +741,7 @@ def approx_rowwise_adagrad_with_weight_decay() -> Dict[str, Any]:
"split_weight_update_cpu"
],
"has_cpu_support": False,
"has_gpu_support": True,
"has_gpu_support": False,
"has_vbe_support": False,
}

Expand Down

0 comments on commit 7eaa1e4

Please sign in to comment.