chainer.function_hooks.CUDAProfileHook

class chainer.function_hooks.CUDAProfileHook[source]

Methods

__enter__()[source]
__exit__(*_)[source]
added(function=None)[source]

Callback function invoked when a function hook is added

Parameters:function (Function) – Function object to which the function hook is added.
backward_postprocess(function, in_data, out_grad)[source]
backward_preprocess(function, in_data, out_grad)[source]
deleted(function=None)[source]

Callback function invoked when a function hook is deleted

Parameters:function (Function) – Function object to which the function hook is deleted.
forward_postprocess(function, in_data)[source]
forward_preprocess(function, in_data)[source]

Attributes

name = 'CUDAProfileHook'