Home
last modified time | relevance | path

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

/external/skia/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 __anon1ef734410202()
57 return make_mask(surface ? surface : SkSurface::MakeRaster(info)); in __anon1ef734410302()
/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 __anon9f67c3780202()
57 return make_mask(surface ? surface : SkSurface::MakeRaster(info)); in __anon9f67c3780302()
/external/tensorflow/tensorflow/python/kernel_tests/
Darray_ops_test.py121 def CheckVersusNumpy(self, ndims_mask, arr_shape, make_mask=None, axis=None): argument
123 if make_mask is None:
124 make_mask = lambda shape: self.rng.randint(0, 2, size=shape).astype(bool) function
126 mask = make_mask(arr_shape[:ndims_mask])
128 mask = make_mask(arr_shape[axis:ndims_mask + axis])
203 make_mask = lambda shape: np.zeros(shape, dtype=bool) function
208 self.CheckVersusNumpy(ndims_mask, arr_shape, make_mask=make_mask)