HomeSort by relevance Sort by last modified time
    Searched refs:model (Results 176 - 200 of 2623) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/
BaseGlideUrlLoader.java 1 package com.bumptech.glide.load.model.stream;
8 import com.bumptech.glide.load.model.GlideUrl;
9 import com.bumptech.glide.load.model.ModelCache;
10 import com.bumptech.glide.load.model.ModelLoader;
15 * A base class for loading images over http/https. Can be subclassed for use with any model that can be translated
18 * @param <T> The type of the model.
42 public DataFetcher<InputStream> getResourceFetcher(T model, int width, int height) {
45 result = modelCache.get(model, width, height);
49 String stringURL = getUrl(model, width, height);
57 modelCache.put(model, width, height, result)
    [all...]
  /external/tensorflow/tensorflow/lite/toco/graph_transformations/
remove_trivial_quantized_activation_func.cc 23 #include "tensorflow/lite/toco/model.h"
34 const Model& model, OperatorType op_type,
55 const auto& input_array = model.GetArray(input_array_name);
61 GraphTransformation* transformation, const Model& model,
87 const auto& output_array = model.GetArray(output_array_name);
98 Model* model, std::size_t op_index, bool* modified) {
100 const auto it = model->operators.begin() + op_index
    [all...]
propagate_fixed_sizes.cc 27 #include "tensorflow/lite/toco/model.h"
124 void ProcessConvOperator(Model* model, ConvOperator* op) {
125 const auto& input_array = model->GetArray(op->inputs[0]);
135 const auto& weights_array = model->GetArray(op->inputs[1]);
143 auto& output_array = model->GetArray(op->outputs[0]);
158 auto& im2col_array = model->GetArray(op->outputs[1]);
165 void ProcessTransposeConvOperator(Model* model, TransposeConvOperator* op) {
177 model->GetArray(op->inputs[TransposeConvOperator::OUTPUT_SHAPE])
    [all...]
convert_expanddims_to_reshape.cc 22 #include "tensorflow/lite/toco/model.h"
28 ::tensorflow::Status ConvertExpandDimsToReshape::Run(Model* model,
32 auto expand_it = model->operators.begin() + op_index;
41 const auto& input_array = model->GetArray(expand_op->inputs[0]);
47 const auto& axis_array = model->GetArray(expand_op->inputs[1]);
74 string shape_array_name = toco::AvailableArrayName(*model, axis_array_name);
75 Array& shape_array = model->GetOrCreateArray(shape_array_name);
84 if (IsDiscardableArray(*model, axis_array_name) &&
85 CountOpsWithInput(*model, axis_array_name) == 1 &
    [all...]
drop_im2col_arrays.cc 16 #include "tensorflow/lite/toco/model.h"
22 ::tensorflow::Status DropIm2colArrays::Run(Model* model, std::size_t op_index,
25 auto conv_it = model->operators.begin() + op_index;
37 model->EraseArray(conv_op->outputs[1]);
remove_trivial_concatenation.cc 22 #include "tensorflow/lite/toco/model.h"
28 ::tensorflow::Status RemoveTrivialConcatenation::Run(Model* model,
32 const auto concat_it = model->operators.begin() + op_index;
40 *modified = RemoveTrivialPassthroughOp(this, model, op_index);
convert_reorder_axes.cc 22 #include "tensorflow/lite/toco/model.h"
30 Model* model, ReorderAxesOperator* reorder_op, const Shape& input_shape) {
45 AvailableArrayName(*model, reshape_op->outputs[0]);
48 Array& reshape_array = model->GetOrCreateArray(reshape_array_name);
61 Model* model, ReorderAxesOperator* reorder_op, const Shape& input_shape,
74 string perm_array_name = AvailableArrayName(*model, transpose_op->outputs[0]);
77 Array& perm_array = model->GetOrCreateArray(perm_array_name);
89 ::tensorflow::Status ConvertReorderAxes::Run(Model* model, std::size_t op_index
    [all...]
resolve_constant_range.cc 16 #include "tensorflow/lite/toco/model.h"
42 ::tensorflow::Status ResolveConstantRange::Run(Model* model,
46 const auto it = model->operators.begin() + op_index;
54 const auto& start_array = model->GetArray(op->inputs[0]);
59 const auto& limit_array = model->GetArray(op->inputs[1]);
64 const auto& delta_array = model->GetArray(op->inputs[2]);
71 if (!IsConstantParameterArray(*model, input)) {
78 auto& output_array = model->GetArray(op->outputs[0]);
108 if (IsDiscardableArray(*model, op->inputs[0]) &
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/model/
FileLoader.java 1 package com.bumptech.glide.load.model;
10 * A simple model loader for loading data from {@link File}s.
24 public DataFetcher<T> getResourceFetcher(File model, int width, int height) {
25 return uriLoader.getResourceFetcher(Uri.fromFile(model), width, height);
UrlLoader.java 1 package com.bumptech.glide.load.model;
8 * A wrapper class that translates {@link java.net.URL} objects into {@link com.bumptech.glide.load.model.GlideUrl}
9 * objects and then uses the wrapped {@link com.bumptech.glide.load.model.ModelLoader} for
10 * {@link com.bumptech.glide.load.model.GlideUrl}s to load the data.
22 public DataFetcher<T> getResourceFetcher(URL model, int width, int height) {
23 return glideUrlLoader.getResourceFetcher(new GlideUrl(model), width, height);
  /external/junit/src/main/java/org/junit/validator/
AnnotationValidator.java 3 import org.junit.runners.model.FrameworkField;
4 import org.junit.runners.model.FrameworkMethod;
5 import org.junit.runners.model.TestClass;
  /external/libtextclassifier/lang_id/common/flatbuffers/
model-utils.h 33 // Model flatbuffer. If so, returns that Model. Otherwise, returns nullptr.
35 // Note: if the Model has the crc32 field, this method checks that the Model
36 // checksum matches that field; if they don't match, the Model is considered
39 const Model *GetVerifiedModelFromBytes(const char *data, size_t num_bytes);
42 inline const Model *GetVerifiedModelFromBytes(mobile::StringPiece bytes) {
46 // Returns the |model| input with specified |name|. Returns nullptr if no such
47 // input exists. If |model| contains multiple inputs with that |name|, returns
48 // the first one (model builders should avoid building such models)
    [all...]
model-utils.cc 17 #include "lang_id/common/flatbuffers/model-utils.h"
29 // Returns true if we have clear evidence that |model| fails its checksum.
31 // E.g., if |model| has the crc32 field, and the value of that field does not
35 bool ClearlyFailsChecksum(const Model &model) {
36 if (!flatbuffers::IsFieldPresent(&model, Model::VT_CRC32)) {
38 << "No CRC32, most likely an old model; skip CRC32 check";
41 const mobile::uint32 expected_crc32 = model.crc32();
42 const mobile::uint32 actual_crc32 = ComputeCrc2Checksum(&model);
64 const Model *model = GetModel(start); local
    [all...]
  /external/webrtc/talk/media/base/
cpuid.cc 50 // Detect CPU Family and Model
52 // 7:4 - Model
55 // 19:16 - Extended Model
57 libyuv::CpuId(1, 0, &cpu_info[0]); // Function 1: Family and Model
59 int model = ((cpu_info[0] >> 4) & 0x0f) | ((cpu_info[0] >> 12) & 0xf0); local
71 (family == 6 && (model == kAtom || model <= kCore2))) {
  /external/tensorflow/tensorflow/python/keras/
integration_test.py 47 model = testing_utils.get_model_from_layers(
52 model.compile(
57 history = model.fit(x_train, y_train, epochs=10, batch_size=10,
61 _, val_acc = model.evaluate(x_train, y_train)
63 predictions = model.predict(x_train)
87 model = keras.models.Model(x, y)
88 model.compile(
94 self.assertEqual(len(model.losses), 2)
95 self.assertEqual(len(model.updates), 2
    [all...]
  /external/tensorflow/tensorflow/python/keras/engine/
training_eager_test.py 44 class DynamicModel(keras.Model):
54 model = DynamicModel()
55 model.compile('rmsprop', 'mae')
56 hist = model.fit(np.zeros((1, 1)), np.zeros((1, 1)))
58 self.assertEqual(len(model.trainable_weights), 2)
59 loss = model.train_on_batch(np.zeros((1, 1)), np.zeros((1, 1)))
78 model = testing_utils.get_multi_io_model(
85 model.compile(
98 model.fit(
104 model.fit
    [all...]
training_generator_test.py 72 model = testing_utils.get_small_mlp(
74 model.compile(
79 model.fit_generator(custom_generator(),
86 model.fit_generator(custom_generator(),
92 model.fit_generator(custom_generator(),
100 model.fit_generator(custom_generator(),
112 model = testing_utils.get_small_mlp(
114 model.compile(
120 model.evaluate_generator(custom_generator(),
126 model.evaluate_generator(custom_generator()
    [all...]
  /external/tensorflow/tensorflow/lite/toco/
tooling_util.cc 99 bool IsInputArray(const Model& model, const string& array_name) {
100 for (const auto& input_array : model.flags.input_arrays()) {
108 bool IsOutputArray(const Model& model, const string& array_name) {
109 for (const auto& output_array : model.flags.output_arrays()) {
117 bool IsArrayConsumed(const Model& model, const string& name) {
118 if (GetOpWithInput(model, name)) {
121 if (IsOutputArray(model, name))
    [all...]
allocate_transient_arrays.cc 24 #include "tensorflow/lite/toco/model.h"
76 const Model& model,
79 for (const auto& rnn_state : model.flags.rnn_states()) {
84 for (std::size_t op_index = 0; op_index < model.operators.size();
86 const auto& op = model.operators[op_index];
162 std::size_t TransientArraySize(const Model& model, const string& array_name,
164 if (!IsAllocatableTransientArray(model, array_name)) {
167 const auto& array = &model.GetArray(array_name)
    [all...]
  /external/tensorflow/tensorflow/contrib/distribute/python/
keras_backward_compat_test.py 49 model = keras.models.Sequential()
50 model.add(keras.layers.Dense(16, activation='relu', input_shape=_INPUT_SIZE))
51 model.add(keras.layers.Dropout(0.1))
52 model.add(keras.layers.Dense(_NUM_CLASS, activation='softmax'))
53 return model
61 model = keras.models.Model(inputs=[a], outputs=[b])
62 return model
79 model = keras.models.Model(
    [all...]
  /developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
FakeFieldGenerator.java 18 import com.example.android.autofill.service.model.FilledAutofillField;
  /developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
FakeFieldGenerator.java 18 import com.example.android.autofill.service.model.FilledAutofillField;
  /external/autotest/frontend/client/src/autotest/moblab/rpc/
ConnectedBoard.java 7 * Connected board and model information
10 public static final String JSON_FIELD_MODEL = "model";
16 private String model; field in class:ConnectedBoard
24 return model;
33 this.model = getStringFieldOrDefault(object, JSON_FIELD_MODEL, "");
41 object.put(JSON_FIELD_MODEL, new JSONString(model));
  /external/caliper/caliper/src/main/java/com/google/caliper/api/
ResultProcessor.java 19 import com.google.caliper.model.Trial;
  /external/caliper/caliper/src/main/java/com/google/caliper/model/
PersistentHashing.java 17 package com.google.caliper.model;

Completed in 255 milliseconds

1 2 3 4 5 6 78 91011>>