Skip to content

Commit 4e93844

Browse files
suofacebook-github-bot
authored andcommitted
remove deprecation warning on get_contiguous_memory_format (#37963)
Summary: Pull Request resolved: #37963 This function is still widely used in the codebase, so we don't want to add noise to builds with a bunch of warnings. Seems like the comment + macro are already pretty good indications that this functionality is considered legacy Test Plan: Imported from OSS Differential Revision: D21434447 Pulled By: suo fbshipit-source-id: 08162ed6502894ea5d3ccb92dfa0183232cc2ab5
1 parent 65260d4 commit 4e93844

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c10/core/MemoryFormat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ enum class MemoryFormat : int8_t { Contiguous, Preserve, ChannelsLast, ChannelsL
3131
// behaviour of contiguous
3232
#define LEGACY_CONTIGUOUS_MEMORY_FORMAT c10::get_contiguous_memory_format()
3333

34-
C10_DEPRECATED inline MemoryFormat get_contiguous_memory_format() {
34+
inline MemoryFormat get_contiguous_memory_format() {
3535
return MemoryFormat::Contiguous;
3636
}
3737

0 commit comments

Comments
 (0)