Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ef1cff7d6a09085f5a39414177fefe578d79f40af14d0cf5f79e9d5fbd2cd740
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "paddle",
"model_name": "Cascade-FasterRCNN-ResNet50-FPN",
"num_devices_required": 1,
"num_nodes_required": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
class Program_weight_tensor_data_0:
name = "data_0"
shape = []
dtype = "int64"
data = [3]


class Program_weight_tensor_data_1:
name = "data_1"
shape = [512]
dtype = "int64"
min_val = 0
max_val = 511
data = None


class Program_weight_tensor_data_2:
name = "data_2"
shape = [512, 4]
dtype = "float32"
max_val = float("1023.9")
mean = float("564.285")
std = float("272.403")
data = None


class Program_weight_tensor_data_3:
name = "data_3"
shape = [512]
dtype = "int64"
min_val = 0
max_val = 2
data = None


class Program_weight_tensor_data_4:
name = "data_4"
shape = [3, 4]
dtype = "float32"
data = [
399.36,
483.84,
458.24,
542.72,
680.96,
599.04,
747.52,
668.16,
642.56,
606.72,
688.64,
727.04,
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import paddle


class GraphModule(paddle.nn.Layer):
def __init__(self):
super().__init__()

def forward(self, data_0, data_1, data_2, data_3, data_4):
# pd_op.full: (xi64) <- ()
full_0 = paddle._C_ops.full(
[], float("0"), paddle.int64, paddle.framework._current_expected_place()
)

# pd_op.greater_than: (xb) <- (xi64, xi64)
greater_than_0 = paddle._C_ops.greater_than(data_0, full_0)
del data_0

# pd_op.cast: (xi64) <- (xb)
cast_0 = paddle._C_ops.cast(greater_than_0, paddle.int64)
del greater_than_0

# pd_op.not_equal: (xb) <- (xi64, xi64)
not_equal_0 = paddle._C_ops.not_equal(cast_0, full_0)
del cast_0

# pd_op.cast: (xi64) <- (xb)
cast_1 = paddle._C_ops.cast(not_equal_0, paddle.int64)
del not_equal_0

# pd_op.equal: (xb) <- (xi64, xi64)
equal_0 = paddle._C_ops.equal(cast_1, full_0)
del cast_1, full_0

# pd_op.full: (1xi32) <- ()
full_1 = paddle._C_ops.full(
[1], float("0"), paddle.int32, paddle.core.CPUPlace()
)

# pd_op.gather: (-1x4xf32) <- (-1x4xf32, -1xi64, 1xi32)
gather_0 = paddle._C_ops.gather(data_4, data_3, full_1)
del data_3, data_4, full_1

# pd_op.shape64: (1xi64) <- (512xi64)
shape64_0 = paddle._C_ops.shape64(data_1)
del data_1

return gather_0, shape64_0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d84efc51ae2a7d78f2c99b1540a638f4add520ed84de5d62907935b05a8cf292
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "paddle",
"model_name": "Cascade-FasterRCNN-ResNet50-FPN",
"num_devices_required": 1,
"num_nodes_required": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
class Program_weight_tensor_data_0:
name = "data_0"
shape = [512, 4]
dtype = "float32"
max_val = float("1018.05")
mean = float("439.025")
std = float("231.686")
data = None


class Program_weight_tensor_data_1:
name = "data_1"
shape = [512, 4]
dtype = "float32"
max_val = float("938.986")
mean = float("467.502")
std = float("224.196")
data = None


class Program_weight_tensor_data_2:
name = "data_2"
shape = [512, 4]
dtype = "float32"
max_val = float("936.918")
mean = float("499.308")
std = float("203.062")
data = None


class Program_weight_tensor_data_3:
name = "data_3"
shape = [512, 4]
dtype = "float32"
max_val = float("981.0")
mean = float("506.296")
std = float("288.897")
data = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import paddle


class GraphModule(paddle.nn.Layer):
def __init__(self):
super().__init__()

def forward(self, data_0, data_1, data_2, data_3):
# pd_op.shape64: (2xi64) <- (512x4xf32)
shape64_0 = paddle._C_ops.shape64(data_0)
del data_0

# pd_op.full_int_array: (1xi64) <- ()
full_int_array_0 = [0]

# pd_op.full_int_array: (1xi64) <- ()
full_int_array_1 = [1]

# pd_op.slice: (1xi64) <- (2xi64, 1xi64, 1xi64)
slice_0 = paddle._C_ops.slice(
shape64_0, [0], full_int_array_0, full_int_array_1, [1], []
)
del shape64_0

# pd_op.shape64: (2xi64) <- (512x4xf32)
shape64_1 = paddle._C_ops.shape64(data_1)
del data_1

# pd_op.slice: (1xi64) <- (2xi64, 1xi64, 1xi64)
slice_1 = paddle._C_ops.slice(
shape64_1, [0], full_int_array_0, full_int_array_1, [1], []
)
del shape64_1

# pd_op.shape64: (2xi64) <- (512x4xf32)
shape64_2 = paddle._C_ops.shape64(data_2)
del data_2

# pd_op.slice: (1xi64) <- (2xi64, 1xi64, 1xi64)
slice_2 = paddle._C_ops.slice(
shape64_2, [0], full_int_array_0, full_int_array_1, [1], []
)
del shape64_2

# pd_op.shape64: (2xi64) <- (512x4xf32)
shape64_3 = paddle._C_ops.shape64(data_3)
del data_3

# pd_op.slice: (1xi64) <- (2xi64, 1xi64, 1xi64)
slice_3 = paddle._C_ops.slice(
shape64_3, [0], full_int_array_0, full_int_array_1, [1], []
)
del full_int_array_0, full_int_array_1, shape64_3

# pd_op.full: (1xi32) <- ()
full_0 = paddle._C_ops.full(
[1], float("0"), paddle.int32, paddle.core.CPUPlace()
)

# builtin.combine: ([1xi64, 1xi64, 1xi64, 1xi64]) <- (1xi64, 1xi64, 1xi64, 1xi64)
combine_0 = [slice_0, slice_1, slice_2, slice_3]
del slice_0, slice_1, slice_2, slice_3

# pd_op.concat: (4xi64) <- ([1xi64, 1xi64, 1xi64, 1xi64], 1xi32)
concat_0 = paddle._C_ops.concat(combine_0, full_0)
del combine_0, full_0

return concat_0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a2168f257f1052f92fee8c70e03f36dfa2ccebadce2e42472f497986ccd8f9a8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "paddle",
"model_name": "Cascade-FasterRCNN-ResNet50-FPN",
"num_devices_required": 1,
"num_nodes_required": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Program_weight_tensor_data_0:
name = "data_0"
shape = []
dtype = "int64"
data = [512]


class Program_weight_tensor_data_1:
name = "data_1"
shape = [512]
dtype = "int64"
min_val = 0
max_val = 0
data = None


class Program_weight_tensor_data_2:
name = "data_2"
shape = [512]
dtype = "int32"
min_val = 0
max_val = 1
data = None


class Program_weight_tensor_data_3:
name = "data_3"
shape = [1]
dtype = "int32"
data = [0]
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import paddle


class GraphModule(paddle.nn.Layer):
def __init__(self):
super().__init__()

def forward(self, data_0, data_1, data_2, data_3):
# pd_op.full: (1xi32) <- ()
full_0 = paddle._C_ops.full(
[1], float("0"), paddle.int32, paddle.core.CPUPlace()
)

# pd_op.gather: (-1xi32) <- (1xi32, -1xi64, 1xi32)
gather_0 = paddle._C_ops.gather(data_3, data_1, full_0)
del data_1, data_3, full_0

# pd_op.full: (xi32) <- ()
full_1 = paddle._C_ops.full(
[], float("0"), paddle.int32, paddle.framework._current_expected_place()
)

# pd_op.equal: (-1xb) <- (-1xi32, xi32)
equal_0 = paddle._C_ops.equal(data_2, full_1)
del full_1

# pd_op.full: (1xf32) <- ()
full_2 = paddle._C_ops.full(
[1], float("1"), paddle.float32, paddle.core.CPUPlace()
)

# pd_op.full_like: (-1xi32) <- (-1xi32, 1xf32)
full_like_0 = paddle._C_ops.full_like(
gather_0, full_2, paddle.int32, paddle.framework._current_expected_place()
)

# pd_op.full: (1xf32) <- ()
full_3 = paddle._C_ops.full(
[1], float("4"), paddle.float32, paddle.core.CPUPlace()
)

# pd_op.scale: (-1xi32) <- (-1xi32, 1xf32)
scale_0 = paddle._C_ops.scale(full_like_0, full_3, float("0"), True)
del full_3, full_like_0

# pd_op.where: (-1xi32) <- (-1xb, -1xi32, -1xi32)
where_1 = paddle._C_ops.where(equal_0, scale_0, gather_0)
del equal_0, gather_0, scale_0

# pd_op.full: (xi32) <- ()
full_4 = paddle._C_ops.full(
[], float("-1"), paddle.int32, paddle.framework._current_expected_place()
)

# pd_op.equal: (-1xb) <- (-1xi32, xi32)
equal_1 = paddle._C_ops.equal(data_2, full_4)
del data_2, full_4

# pd_op.full_like: (-1xi32) <- (-1xi32, 1xf32)
full_like_1 = paddle._C_ops.full_like(
where_1, full_2, paddle.int32, paddle.framework._current_expected_place()
)
del full_2

# pd_op.full: (1xf32) <- ()
full_5 = paddle._C_ops.full(
[1], float("-1"), paddle.float32, paddle.core.CPUPlace()
)

# pd_op.scale: (-1xi32) <- (-1xi32, 1xf32)
scale_1 = paddle._C_ops.scale(full_like_1, full_5, float("0"), True)
del full_5, full_like_1

# pd_op.where: (-1xi32) <- (-1xb, -1xi32, -1xi32)
where_0 = paddle._C_ops.where(equal_1, scale_1, where_1)
del equal_1, scale_1, where_1

# pd_op.full: (1xi64) <- ()
full_6 = paddle._C_ops.full(
[1], float("0"), paddle.int64, paddle.core.CPUPlace()
)

# pd_op.full: (1xi64) <- ()
full_7 = paddle._C_ops.full(
[1], float("1"), paddle.int64, paddle.core.CPUPlace()
)

# pd_op.arange: (-1xi64) <- (1xi64, xi64, 1xi64)
arange_0 = paddle.arange(full_6, data_0, full_7, dtype="int64")
del data_0, full_6, full_7

return arange_0, where_0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6094c7849d99e111aa2a2a8086350c32eb32762597012b3907800417b767a226
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "paddle",
"model_name": "Cascade-FasterRCNN-ResNet50-FPN",
"num_devices_required": 1,
"num_nodes_required": 1
}
Loading
Loading