Home
last modified time | relevance | path

Searched refs:make_mask (Results 1 – 3 of 3) sorted by relevance

/external/skqp/gm/
Dimagemasksubset.cpp22 sk_sp<SkImage> make_mask(const sk_sp<SkSurface>& surface) { in make_mask() function
38 make_mask(SkSurface::MakeRasterDirect(surfaceInfo, pixels, rowBytes)); in onGetPixels()
50 return make_mask(SkSurface::MakeRaster(info)); in __anon3a29efdf0202()
57 return make_mask(surface ? surface : SkSurface::MakeRaster(info)); in __anon3a29efdf0302()
/external/skia/gm/
Dimagemasksubset.cpp29 sk_sp<SkImage> make_mask(const sk_sp<SkSurface>& surface) { in make_mask() function
45 make_mask(SkSurface::MakeRasterDirect(surfaceInfo, pixels, rowBytes)); in onGetPixels()
57 return make_mask(SkSurface::MakeRaster(info)); in __anonb9b960a80202()
64 return make_mask(surface ? surface : SkSurface::MakeRaster(info)); in __anonb9b960a80302()
/external/tensorflow/tensorflow/python/kernel_tests/
Darray_ops_test.py131 def CheckVersusNumpy(self, ndims_mask, arr_shape, make_mask=None, axis=None): argument
133 if make_mask is None:
134 make_mask = lambda shape: self.rng.randint(0, 2, size=shape).astype(bool) function
136 mask = make_mask(arr_shape[:ndims_mask])
138 mask = make_mask(arr_shape[axis:ndims_mask + axis])
220 make_mask = lambda shape: np.zeros(shape, dtype=bool) function
226 self.CheckVersusNumpy(ndims_mask, arr_shape, make_mask=make_mask)