checkblock
function
defined in module
FastAI
checkblock(block, obs)
checkblock(blocks, obss)
Check whether
obs
is compatible with
block
, returning a
Bool
.
checkblock
(
Image
{
2
}
(
)
,
rand
(
RGB
,
16
,
16
)
)
==
true
checkblock
(
(
Image
{
2
}
(
)
,
Label
(
[
"
cat
"
,
"
dog
"
]
)
)
,
(
rand
(
RGB
,
16
,
16
)
,
"
cat
"
)
,
)
==
true
An implementation of
checkblock
should be as specific as possible. The default method returns
false
, so you only need to implement methods for valid types and return
true
.
There are
17
methods for FastAI.checkblock
:
The following pages link back here:
Discovery, Image segmentation, TimeSeries Classification, tsregression
FastAI.jl , blocks/continuous.jl , blocks/label.jl , blocks/many.jl , datablock/block.jl , datablock/encoding.jl , datablock/wrappers.jl , datasets/recipe.jl , encodings/onehot.jl , FastTabular.jl , blocks/tablerow.jl , encodings/tabularpreprocessing.jl , recipes.jl , FastVision.jl , blocks/bounded.jl , blocks/image.jl , blocks/keypoints.jl , blocks/mask.jl , encodings/imagepreprocessing.jl , encodings/keypointpreprocessing.jl