Caffe2: Clip Op

目標:在定義函式的時候,想定義成某種 clip 的運算,但是不知道如何使用。(070629 update:已解決)

# Create an operator.
op = core.CreateOperator(
"Relu", # The type of operator that we want to run
["X"], # A list of input blobs by their names
["Y"], # A list of output blobs by their names)

這段來自以下:

而 Op的說明:

以上是使用範例。

第二個範例是:

op = core.CreateOperator(
"GaussianFill",
[], # GaussianFill does not need any parameters.
["Z"],
shape=[100, 100], # shape argument as a list of ints.
mean=1.0, # mean as a single float
std=1.0, # std as a single float
)

但是沒有文件...., 新東西就是這樣!

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

以下還在修改中:

op = core.CreateOperator(
"clip",
0, # GaussianFill does not need any parameters.
1,
shape=[100, 100], # shape argument as a list of ints.
mean=1.0, # mean as a single float
std=1.0, # std as a single float
)
Show your support

Clapping shows how much you appreciated CR-Ko’s story.