Home
last modified time | relevance | path

Searched refs:backend (Results 1 – 25 of 725) sorted by relevance

12345678910>>...29

/external/tensorflow/tensorflow/contrib/keras/api/keras/backend/
D__init__.py22 from tensorflow.python.keras._impl.keras.backend import abs
23 from tensorflow.python.keras._impl.keras.backend import all
24 from tensorflow.python.keras._impl.keras.backend import any
25 from tensorflow.python.keras._impl.keras.backend import arange
26 from tensorflow.python.keras._impl.keras.backend import argmax
27 from tensorflow.python.keras._impl.keras.backend import argmin
28 from tensorflow.python.keras._impl.keras.backend import backend
29 from tensorflow.python.keras._impl.keras.backend import batch_dot
30 from tensorflow.python.keras._impl.keras.backend import batch_flatten
31 from tensorflow.python.keras._impl.keras.backend import batch_get_value
[all …]
/external/tensorflow/tensorflow/python/keras/backend/
D__init__.py22 from tensorflow.python.keras._impl.keras.backend import abs
23 from tensorflow.python.keras._impl.keras.backend import all
24 from tensorflow.python.keras._impl.keras.backend import any
25 from tensorflow.python.keras._impl.keras.backend import arange
26 from tensorflow.python.keras._impl.keras.backend import argmax
27 from tensorflow.python.keras._impl.keras.backend import argmin
28 from tensorflow.python.keras._impl.keras.backend import backend
29 from tensorflow.python.keras._impl.keras.backend import batch_dot
30 from tensorflow.python.keras._impl.keras.backend import batch_flatten
31 from tensorflow.python.keras._impl.keras.backend import batch_get_value
[all …]
/external/tensorflow/tensorflow/python/keras/_impl/keras/
Dbackend_test.py46 keras_output = keras_op(keras.backend.variable(inputs, dtype=dtype),
48 keras_output = keras.backend.eval(keras_output)
73 keras_output = keras_op(keras.backend.variable(input_a, dtype=dtype),
74 keras.backend.variable(input_b, dtype=dtype),
76 keras_output = keras.backend.eval(keras_output)
90 self.assertEqual(keras.backend.backend(), 'tensorflow')
94 keras.backend.set_epsilon(epsilon)
95 self.assertEqual(keras.backend.epsilon(), epsilon)
96 keras.backend.set_epsilon(1e-7)
100 keras.backend.set_floatx(floatx)
[all …]
Dmetrics_test.py31 y_a = keras.backend.variable(np.random.random((6, 7)))
32 y_b = keras.backend.variable(np.random.random((6, 7)))
36 self.assertEqual(keras.backend.eval(output).shape, (6,))
41 y_a = keras.backend.variable(np.random.randint(0, 7, (6,)))
42 y_b = keras.backend.variable(np.random.random((6, 7)))
43 self.assertEqual(keras.backend.eval(metric(y_a, y_b)).shape, (6,))
47 y_pred = keras.backend.variable(np.array([[0.3, 0.2, 0.1],
49 y_true = keras.backend.variable(np.array([[1], [0]]))
50 result = keras.backend.eval(
53 result = keras.backend.eval(
[all …]
Dactivations_test.py49 x = keras.backend.placeholder(ndim=2)
50 f = keras.backend.function([x], [keras.activations.softmax(x)])
58 x = keras.backend.placeholder(ndim=1)
63 x = keras.backend.placeholder(shape=(2, 2, 3))
64 f = keras.backend.function([x], [keras.activations.softmax(x)])
71 x = keras.backend.placeholder(ndim=2)
72 f = keras.backend.function([x], [keras.activations.selu(x)])
77 positive_values = np.array([[1, 2]], dtype=keras.backend.floatx())
81 negative_values = np.array([[-1, -2]], dtype=keras.backend.floatx())
91 x = keras.backend.placeholder(ndim=2)
[all …]
Dlosses_test.py67 y_a = keras.backend.variable(np.random.random((5, 6, 7)))
68 y_b = keras.backend.variable(np.random.random((5, 6, 7)))
75 y_a = keras.backend.variable(np.random.random((6, 7)))
76 y_b = keras.backend.variable(np.random.random((6, 7)))
83 y_a = keras.backend.variable(np.random.randint(0, 7, (5, 6)))
84 y_b = keras.backend.variable(np.random.random((5, 6, 7)))
86 assert keras.backend.eval(objective_output).shape == (5, 6)
88 y_a = keras.backend.variable(np.random.randint(0, 7, (6,)))
89 y_b = keras.backend.variable(np.random.random((6, 7)))
91 assert keras.backend.eval(objective_output).shape == (6,)
[all …]
Dconstraints_test.py56 normed = norm_instance(keras.backend.variable(array))
57 assert np.all(keras.backend.eval(normed) < m)
67 x_normed_actual = keras.backend.eval(
68 norm_instance(keras.backend.variable(x)))
74 normed = non_neg_instance(keras.backend.variable(get_example_array()))
75 assert np.all(np.min(keras.backend.eval(normed), axis=1) == 0.)
81 keras.backend.variable(get_example_array()))
83 np.sum(keras.backend.eval(normalized) ** 2, axis=0))
95 normed = norm_instance(keras.backend.variable(array))
96 value = keras.backend.eval(normed)
/external/tensorflow/tensorflow/compiler/xla/tests/
Dbuild_defs.bzl10 """Removes "gpu" from a backend list if CUDA is not enabled.
24 return [backend for backend in backends if backend != "gpu"]
46 'backend_args'/'backend_tags' specifies backend-specific args parameters to
49 The name of the cc_tests are the provided name argument with the backend name
60 Each generated cc_test target has a tag indicating which backend the test is
62 tags can be used to gather tests for a particular backend into a test_suite.
85 to the value 1 where ${BACKEND} is the uppercase name of the backend.
101 backend_tags: A dict mapping backend name to list of additional tags to
103 backend_args: A dict mapping backend name to list of additional args to
111 backends = [backend for backend in backends
[all …]
/external/mesa3d/src/gbm/main/
Dbackend.c50 load_backend(const struct backend_desc *backend) in load_backend() argument
54 if (backend == NULL) in load_backend()
57 if (backend->builtin) { in load_backend()
58 init = backend->builtin; in load_backend()
67 const struct backend_desc *backend = NULL; in find_backend() local
72 backend = &backends[i]; in find_backend()
77 return backend; in find_backend()
83 const struct gbm_backend *backend = NULL; in _gbm_create_device() local
90 backend = load_backend(find_backend(b)); in _gbm_create_device()
92 if (backend) in _gbm_create_device()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dbuild_defs.bzl15 """Generates py_test targets, one per XLA backend.
17 This rule generates py_test() targets named name_backend, for each backend
45 for backend in enabled_backends:
46 test_name = "{}_{}".format(name, backend)
47 backend_tags = ["tf_xla_{}".format(backend)]
51 if backend == "cpu":
56 elif backend == "gpu":
62 elif backend in plugins:
63 backend_args += ["--test_device=" + plugins[backend]["device"],
64 "--types=" + plugins[backend]["types"]]
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/
Dlocal_client.cc35 Backend* backend) { in BorrowStreamForDevice() argument
37 device_ordinal = backend->default_device_ordinal(); in BorrowStreamForDevice()
39 return backend->BorrowStream(device_ordinal); in BorrowStreamForDevice()
44 Backend* backend, in LocalExecutable() argument
47 backend_(backend), in LocalExecutable()
55 const ExecutableRunOptions& run_options, const Backend& backend) { in ValidateExecutionOptions() argument
129 if (run_options.allocator()->platform() != backend.platform()) { in ValidateExecutionOptions()
133 backend.platform()->Name().c_str()); in ValidateExecutionOptions()
226 return local_service_->backend().platform(); in platform()
230 return local_service_->backend().device_count(); in device_count()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_runner.cc119 module, backend().compiler()->RunHloPasses( in ExecuteInternal()
120 std::move(module), backend().default_stream_executor(), in ExecuteInternal()
125 backend().compiler()->RunBackend(std::move(module), in ExecuteInternal()
126 backend().default_stream_executor(), in ExecuteInternal()
129 se::Stream stream(backend().default_stream_executor()); in ExecuteInternal()
133 run_options.set_device_ordinal(backend().default_device_ordinal()); in ExecuteInternal()
135 run_options.set_allocator(backend().memory_allocator()); in ExecuteInternal()
136 run_options.set_inter_op_thread_pool(backend().inter_op_thread_pool()); in ExecuteInternal()
138 backend().eigen_intra_op_thread_pool_device()); in ExecuteInternal()
141 run_options, backend().StreamBorrower(), in ExecuteInternal()
[all …]
/external/skia/bench/
DRefCntBench.cpp21 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
22 return backend == kNonRendering_Backend; in isSuitableFor()
43 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
44 return backend == kNonRendering_Backend; in isSuitableFor()
77 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
78 return backend == kNonRendering_Backend; in isSuitableFor()
104 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
105 return backend == kNonRendering_Backend; in isSuitableFor()
132 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
133 return backend == kNonRendering_Backend; in isSuitableFor()
[all …]
DPDFBench.cpp25 bool isSuitableFor(Backend backend) override { in isSuitableFor()
26 return backend == kNonRendering_Backend; in isSuitableFor()
87 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
88 return backend == kNonRendering_Backend; in isSuitableFor()
126 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
127 return backend == kNonRendering_Backend; in isSuitableFor()
165 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
166 return backend == kNonRendering_Backend; in isSuitableFor()
230 bool isSuitableFor(Backend backend) override { in isSuitableFor()
231 return backend == kNonRendering_Backend; in isSuitableFor()
/external/skqp/bench/
DRefCntBench.cpp21 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
22 return backend == kNonRendering_Backend; in isSuitableFor()
43 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
44 return backend == kNonRendering_Backend; in isSuitableFor()
77 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
78 return backend == kNonRendering_Backend; in isSuitableFor()
104 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
105 return backend == kNonRendering_Backend; in isSuitableFor()
132 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
133 return backend == kNonRendering_Backend; in isSuitableFor()
[all …]
DPDFBench.cpp25 bool isSuitableFor(Backend backend) override { in isSuitableFor()
26 return backend == kNonRendering_Backend; in isSuitableFor()
87 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
88 return backend == kNonRendering_Backend; in isSuitableFor()
126 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
127 return backend == kNonRendering_Backend; in isSuitableFor()
165 bool isSuitableFor(Backend backend) override { in isSuitableFor() argument
166 return backend == kNonRendering_Backend; in isSuitableFor()
230 bool isSuitableFor(Backend backend) override { in isSuitableFor()
231 return backend == kNonRendering_Backend; in isSuitableFor()
/external/wpa_supplicant_8/src/utils/
Dext_password.c27 const struct ext_password_backend *backend; member
32 struct ext_password_data * ext_password_init(const char *backend, in ext_password_init() argument
43 if (os_strcmp(backends[i]->name, backend) == 0) { in ext_password_init()
44 data->backend = backends[i]; in ext_password_init()
49 if (!data->backend) { in ext_password_init()
54 data->priv = data->backend->init(params); in ext_password_init()
66 if (data && data->backend && data->priv) in ext_password_deinit()
67 data->backend->deinit(data->priv); in ext_password_deinit()
77 return data->backend->get(data->priv, name); in ext_password_get()
/external/tensorflow/tensorflow/docs_src/performance/xla/
Ddeveloping_new_backend.md1 # Developing a new backend for XLA
9 implement to create a backend to run TensorFlow graphs. Retargeting XLA should
16 without an existing [LLVM](http://llvm.org) backend.
17 2. Non-CPU-like hardware with an existing LLVM backend.
18 3. Non-CPU-like hardware without an existing LLVM backend.
20 > Note: An LLVM backend can mean either one of the officially released LLVM
21 > backends or a custom LLVM backend developed in-house.
25 In this scenario, start by looking at the existing [XLA CPU backend]
31 If the hardware vendor has an LLVM backend for their hardware, it is simple to
32 link the backend with the LLVM built with XLA. In JIT mode, the XLA CPU backend
[all …]
/external/selinux/libselinux/utils/
Dselabel_lookup.c35 int raw = 0, type = 0, backend = 0, rc, opt; in main() local
51 backend = SELABEL_CTX_FILE; in main()
53 backend = SELABEL_CTX_MEDIA; in main()
55 backend = SELABEL_CTX_X; in main()
57 backend = SELABEL_CTX_DB; in main()
59 backend = SELABEL_CTX_ANDROID_PROP; in main()
61 backend = SELABEL_CTX_ANDROID_SERVICE; in main()
91 hnd = selabel_open(backend, selabel_option, 2); in main()
Dselabel_digest.c62 int backend = 0, rc, opt, validate = 0; in main() local
86 backend = SELABEL_CTX_FILE; in main()
88 backend = SELABEL_CTX_MEDIA; in main()
90 backend = SELABEL_CTX_X; in main()
92 backend = SELABEL_CTX_DB; in main()
94 backend = SELABEL_CTX_ANDROID_PROP; in main()
96 backend = SELABEL_CTX_ANDROID_SERVICE; in main()
126 hnd = selabel_open(backend, selabel_option, 3); in main()
/external/libusb/
Dconfigure.ac62 backend="linux"
67 backend="darwin"
72 backend="openbsd"
77 backend="netbsd"
82 backend="windows"
88 AC_MSG_RESULT([Cygwin (using Windows backend)])
89 backend="windows"
94 backend="haiku"
99 backend="sunos"
106 case $backend in
[all …]
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java18 protected native float nExecuteGM(int gm, int backend) throws SkQPException; in nExecuteGM() argument
47 for (int backend = 0; backend < mBackends.length; backend++) { in runTests()
48 String classname = kSkiaGM + mBackends[backend]; in runTests()
50 String testName = kSkiaGM + mBackends[backend] + "_" +mGMs[gm]; in runTests()
55 value = this.nExecuteGM(gm, backend); in runTests()
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java18 protected native float nExecuteGM(int gm, int backend) throws SkQPException; in nExecuteGM() argument
47 for (int backend = 0; backend < mBackends.length; backend++) { in runTests()
48 String classname = kSkiaGM + mBackends[backend]; in runTests()
50 String testName = kSkiaGM + mBackends[backend] + "_" +mGMs[gm]; in runTests()
55 value = this.nExecuteGM(gm, backend); in runTests()
/external/skqp/site/user/special/
Dvulkan.md4 Skia has a Vulkan implementation of its GPU backend. The Vulkan backend can be
5 built alongside the OpenGL backend. The client can select between the OpenGL
6 and Vulkan implementation at runtime. The Vulkan backend has reached feature
7 parity with the OpenGL backend. At this time we find that many Vulkan drivers
13 To build the Vulkan backend, set `skia_vulkan_sdk` to the path to your Vulkan SDK in `args.gn`.
18 The Vulkan backend can run on any device with Vulkan drivers, including all Android N+ devices.
19 To build the Vulkan backend, set `ndk_api = 24` in `args.gn` to target Android N.
36 When using the Vulkan backend, GrVkImageInfo is used to construct GrBackendTexture
/external/skia/site/user/special/
Dvulkan.md4 Skia has a Vulkan implementation of its GPU backend. The Vulkan backend can be
5 built alongside the OpenGL backend. The client can select between the OpenGL
6 and Vulkan implementation at runtime. The Vulkan backend has reached feature
7 parity with the OpenGL backend. At this time we find that many Vulkan drivers
13 To build the Vulkan backend, set `skia_vulkan_sdk` to the path to your Vulkan SDK in `args.gn`.
18 The Vulkan backend can run on any device with Vulkan drivers, including all Android N+ devices.
19 To build the Vulkan backend, set `ndk_api = 24` in `args.gn` to target Android N.
36 When using the Vulkan backend, GrVkImageInfo is used to construct GrBackendTexture

12345678910>>...29