rename class autoShape -> AutoShape (#3173)

* rename class autoShape -> AutoShape

follow other class naming convention

* rename class autoShape -> AutoShape

follow other classes' naming convention

* rename class autoShape -> AutoShape
This commit is contained in:
Yonghye Kwon authored and GitHub committed 2021-05-16 15:46:45 +02:00
1 parent 17b0f71538
commit be86c21c73
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -215,9 +215,9 @@ class Model(nn.Module):
self.model = self.model[:-1] # remove
return self
def autoshape(self): # add autoShape module
logger.info('Adding autoShape... ')
m = autoShape(self) # wrap model
def autoshape(self): # add AutoShape module
logger.info('Adding AutoShape... ')
m = AutoShape(self) # wrap model
copy_attr(m, self, include=('yaml', 'nc', 'hyp', 'names', 'stride'), exclude=()) # copy attributes
return m