-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update batch norm layer * optim max pooling * expose profiler api * list network blobs * remove cudnn v4 support * test buffer io * find cuda arch for vs2015
- Loading branch information
Showing
22 changed files
with
286 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ gradle-app.setting | |
# gradle/wrapper/gradle-wrapper.properties | ||
|
||
*.log | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ dist | |
build | ||
|
||
*.pyc | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# coding = utf-8 | ||
# pylint: disable=invalid-name | ||
"""Profiler in mini-caffe""" | ||
from .base import LIB | ||
from .base import c_str, check_call | ||
|
||
|
||
class Profiler(object): | ||
"""Profiler | ||
""" | ||
|
||
@staticmethod | ||
def enable(): | ||
"""enable profiler | ||
""" | ||
check_call(LIB.CaffeProfilerEnable()) | ||
|
||
@staticmethod | ||
def disable(): | ||
"""disable profiler | ||
""" | ||
check_call(LIB.CaffeProfilerDisable()) | ||
|
||
@staticmethod | ||
def open_scope(name): | ||
"""open a scope on profiler | ||
Parameters | ||
---------- | ||
name: string | ||
scope name | ||
""" | ||
check_call(LIB.CaffeProfilerScopeStart(c_str(name))) | ||
|
||
@staticmethod | ||
def close_scope(): | ||
"""close a scope on profiler | ||
""" | ||
check_call(LIB.CaffeProfilerScopeEnd()) | ||
|
||
@staticmethod | ||
def dump(fn): | ||
"""dump profiler data to fn | ||
Parameters | ||
---------- | ||
fn: string | ||
file path to save profiler data | ||
""" | ||
check_call(LIB.CaffeProfilerDump(c_str(fn))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.