MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _is_sequence_except_dict

Function _is_sequence_except_dict

python/paddle/static/nn/control_flow.py:2132–2138  ·  view source on GitHub ↗

In this function, dict is not viewed as sequence.

(x)

Source from the content-addressed store, hash-verified

2130
2131
2132def _is_sequence_except_dict(x):
2133 """
2134 In this function, dict is not viewed as sequence.
2135 """
2136 if isinstance(x, dict):
2137 return False
2138 return is_sequence(x)
2139
2140
2141def _to_sequence_except_dict(x):

Callers 1

expand_undefined_varFunction · 0.85

Calls 1

is_sequenceFunction · 0.90

Tested by

no test coverage detected