Remove set_from from samples, update docstrings (#11889)
This commit is contained in:
1 parent
594c3dac49
commit
6033e52dd9
3 files changed
+25
-4
No files matched your search
@@ -57,7 +57,8 @@ def main():
|
||||
# - reuse precision and shape from already available `input_tensor`
|
||||
# - layout of data is 'NHWC'
|
||||
ppp.input().tensor() \
|
||||
.set_from(input_tensor) \
|
||||
.set_shape(input_tensor.shape) \
|
||||
.set_element_type(Type.u8) \
|
||||
.set_layout(Layout('NHWC')) # noqa: ECE001, N400
|
||||
|
||||
# 2) Adding explicit preprocessing steps:
|
||||
|
||||
Reference in new issue
Block a user