Showing posts with label decorator. Show all posts
Showing posts with label decorator. Show all posts
Sunday, September 6, 2020
use case of decorator function in python
def layer(func):
def layer_decorated(self):
print('func is wrapped');
func(self)
return self
return layer_decorated
class Network(object):
data = 0
def __init__(self):
self.data = 1024
# conv = layer(conv)와 같은 의미
@layer
def conv(self):
print('conv is called')
Subscribe to:
Posts (Atom)
Task in UnrealEngine
https://www.youtube.com/watch?v=1lBadANnJaw
-
Unity released very good FPS example for people and I decided to analysis how they make this. Personally I wanted to show you how I analys...
-
Because nature of rotation angle, when we interpolate angles we could have some problems. For instance we have angle A0 and A1. A0 is -...
-
http://rogerdudler.github.com/git-guide/index.ko.html