/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
HttpUrlGlideUrlLoader.java | 1 package com.bumptech.glide.load.model.stream; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.GlideUrl; 9 import com.bumptech.glide.load.model.ModelCache; 10 import com.bumptech.glide.load.model.ModelLoader; 11 import com.bumptech.glide.load.model.ModelLoaderFactory; 16 * An {@link com.bumptech.glide.load.model.ModelLoader} for translating {@link com.bumptech.glide.load.model.GlideUrl} 24 * The default factory for {@link com.bumptech.glide.load.model.stream.HttpUrlGlideUrlLoader}s. 49 public DataFetcher<InputStream> getResourceFetcher(GlideUrl model, int width, int height) [all...] |
StreamByteArrayLoader.java | 1 package com.bumptech.glide.load.model.stream; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.ModelLoader; 9 import com.bumptech.glide.load.model.ModelLoaderFactory; 34 public DataFetcher<InputStream> getResourceFetcher(byte[] model, int width, int height) { 35 return new ByteArrayFetcher(model, id); 39 * Factory for {@link com.bumptech.glide.load.model.stream.StreamByteArrayLoader}.
|
StreamUrlLoader.java | 1 package com.bumptech.glide.load.model.stream; 5 import com.bumptech.glide.load.model.GenericLoaderFactory; 6 import com.bumptech.glide.load.model.GlideUrl; 7 import com.bumptech.glide.load.model.ModelLoader; 8 import com.bumptech.glide.load.model.ModelLoaderFactory; 9 import com.bumptech.glide.load.model.UrlLoader; 15 * A wrapper class that translates {@link java.net.URL} objects into {@link com.bumptech.glide.load.model.GlideUrl} 16 * objects and then uses the wrapped {@link com.bumptech.glide.load.model.ModelLoader} for 17 * {@link com.bumptech.glide.load.model.GlideUrl}s to load the {@link java.io.InputStream} data. 22 * The default factory for {@link com.bumptech.glide.load.model.stream.StreamUrlLoader}s [all...] |
/external/libtextclassifier/actions/ |
zlib-utils.h | 17 // Functions to compress and decompress low entropy entries in the model. 28 // Compresses regex rules in the model in place. 29 bool CompressActionsModel(ActionsModelT* model); 31 // Decompresses regex rules in the model in place. 32 bool DecompressActionsModel(ActionsModelT* model); 34 // Compresses regex rules in the model. 35 std::string CompressSerializedActionsModel(const std::string& model);
|
/external/tensorflow/tensorflow/lite/kernels/ |
ceil_test.cc | 20 #include "tensorflow/lite/model.h" 49 CeilOpModel model({2}, TensorType_FLOAT32); 50 model.PopulateTensor<float>(model.input(), {8.5, 0.0}); 51 model.Invoke(); 52 EXPECT_THAT(model.GetOutput(), ElementsAreArray({9, 0})); 53 EXPECT_THAT(model.GetOutputShape(), ElementsAreArray({2})); 57 CeilOpModel model({2, 1, 1, 5}, TensorType_FLOAT32); 58 model.PopulateTensor<float>(model.input(), [all...] |
floor_test.cc | 20 #include "tensorflow/lite/model.h" 49 FloorOpModel model({2}, TensorType_FLOAT32); 50 model.PopulateTensor<float>(model.input(), {8.5, 0.0}); 51 model.Invoke(); 52 EXPECT_THAT(model.GetOutput(), ElementsAreArray({8, 0})); 53 EXPECT_THAT(model.GetOutputShape(), ElementsAreArray({2})); 57 FloorOpModel model({2, 1, 1, 5}, TensorType_FLOAT32); 58 model.PopulateTensor<float>(model.input(), [all...] |
unpack_test.cc | 20 #include "tensorflow/lite/model.h" 72 UnpackOpModel<float> model({TensorType_FLOAT32, {3, 2}}, 0); 73 model.SetInput({1, 2, 3, 4, 5, 6}); 74 model.Invoke(); 77 const std::vector<std::vector<int>>& output_shapes = model.GetOutputShapes(); 84 const std::vector<std::vector<float>>& output_datas = model.GetOutputDatas(); 92 UnpackOpModel<float> model({TensorType_FLOAT32, {3, 2}}, 1); 93 model.SetInput({1, 2, 3, 4, 5, 6}); 94 model.Invoke(); 97 const std::vector<std::vector<int>>& output_shapes = model.GetOutputShapes() [all...] |
/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
resolve_constant_fill.cc | 18 #include "tensorflow/lite/toco/model.h" 25 bool ComputeFillArray(Model* model, FillOperator* op) { 26 const auto& val_array = model->GetArray(op->inputs[1]); 27 auto& output_array = model->GetArray(op->outputs[0]); 44 ::tensorflow::Status ResolveConstantFill::Run(Model* model, 48 const auto fill_it = model->operators.begin() + op_index; 58 auto& output_array = model->GetArray(op->outputs[0]); 69 const auto& val_array = model->GetArray(op->inputs[1]) [all...] |
group_bidirectional_sequence_ops.cc | 24 #include "tensorflow/lite/toco/model.h" 31 Model* model, const Operator& op) { 33 model->operators.begin(), model->operators.end(), 37 bool MatchTwoUnpackOps(const Operator& op, const Model& model, 43 *fw_output = GetOpWithOutput(model, op.inputs[0]); 44 *bw_output = GetOpWithOutput(model, op.inputs[1]); 59 bool MatchDynamicBidirectionalSequenceOutputs(Operator* op, const Model& model [all...] |
resolve_reduce_attributes.cc | 21 #include "tensorflow/lite/toco/model.h" 28 bool ResolveAttributes(Model* model, T* op) { 34 if (!IsConstantParameterArray(*model, op->inputs[1])) return false; 36 const Array& indices_array = model->GetArray(op->inputs[1]); 47 ::tensorflow::Status ResolveReduceAttributes::Run(Model* model, 51 Operator* op = model->operators[op_index].get(); 54 *modified = ResolveAttributes(model, static_cast<MeanOperator*>(op)); 58 ResolveAttributes(model, static_cast<TensorFlowSumOperator*>(op)) [all...] |
make_initial_dequantize_operator.cc | 22 #include "tensorflow/lite/toco/model.h" 36 Model* model) { 41 if (GetOpWithOutput(*model, input_name)) { 49 if (CountOpsWithInput(*model, input_name) > 1) { 50 if (op != GetFirstOpWithInput(*model, input_name)) { 55 auto& input_array = model->GetArray(input_name); 66 AvailableArrayName(*model, input_name + "_dequantized"); 67 for (auto& other_op : model->operators) { 76 model->GetOrCreateArray(dequantized_input_name) [all...] |
remove_trivial_passthrough.cc | 21 #include "tensorflow/lite/toco/model.h" 31 // appear there, and not e.g. in model flags). 32 void Reroute(const string& from, const string& to, Model* model) { 33 for (const auto& op : model->operators) { 45 const Array& from_array = model->GetArray(from); 46 Array& to_array = model->GetOrCreateArray(to); 65 Model* model, std::size_t op_index, 67 const auto passthru_it = model->operators.begin() + op_index [all...] |
identify_lstm_merge_inputs.cc | 23 #include "tensorflow/lite/toco/model.h" 28 ::tensorflow::Status MergeLstmCellInputs::Run(Model* model, 33 auto op_it = model->operators.begin() + op_index; 47 // using the rnn_states in the model flag. 49 if (!GetMatchingRnnArray(model, src_op->outputs[kOutputTensor], 54 if (!GetMatchingRnnArray(model, src_op->outputs[kCellStateTensor], 60 int num_cell = model->GetArray(src_op->inputs[kInputToInputWeightsTensor]) 63 int num_input = model->GetArray(src_op->inputs[kInputToInputWeightsTensor]) 67 model->GetArray(src_op->inputs[kRecurrentToInputWeightsTensor] [all...] |
merge_reshape_into_preceding_transpose.cc | 23 #include "tensorflow/lite/toco/model.h" 32 bool OperatorReady(const Model& model, const Operator* op) { 33 if (!model.HasArray(op->inputs[0]) || !model.HasArray(op->inputs[1]) || 34 !model.HasArray(op->outputs[0])) { 39 if (!model.GetArray(op->inputs[0]).has_shape() || 40 !model.GetArray(op->outputs[0]).has_shape()) { 45 if (!model.GetArray(op->inputs[1]).buffer) { 54 std::vector<int32> ReshapeToTranspose(const Model& model [all...] |
hardcode_min_max.cc | 21 #include "tensorflow/lite/toco/model.h" 29 bool HardcodeMinMaxForIm2colArray(Model* model, Operator* op) { 33 auto& im2col_array = model->GetArray(op->outputs[1]); 37 const auto& input_array = model->GetArray(op->inputs[0]); 49 bool HardcodeMinMaxForL2Normalization(Model* model, Operator* op) { 50 auto& output_array = model->GetArray(op->outputs[0]); 54 const auto& input_array = model->GetArray(op->inputs[0]); 66 bool HardcodeInputMinMaxFromOutput(Model* model, Operator* op) [all...] |
drop_fake_quant.cc | 22 #include "tensorflow/lite/toco/model.h" 28 ::tensorflow::Status DropFakeQuant::Run(Model* model, std::size_t op_index, 31 const auto fakequant_it = model->operators.begin() + op_index; 42 const auto& output_array = model->GetArray(fakequant_op->outputs[0]); 49 if (CountOpsWithInput(*model, fakequant_op->inputs[i]) == 1) { 50 model->EraseArray(fakequant_op->inputs[i]); 55 *modified = RemoveTrivialPassthroughOp(this, model, op_index);
|
/external/tensorflow/tensorflow/python/keras/ |
models.py | 16 """Code for model cloning, plus model-related API entries. 40 Model = training.Model # pylint: disable=invalid-name 53 def _clone_functional_model(model, input_tensors=None, share_weights=False): 54 """Clone a functional `Model` instance. 56 Model cloning is similar to calling a model on new inputs, 61 model: Instance of `Model` [all...] |
/external/ImageMagick/PerlMagick/demo/ |
demo.pl | 8 # Read model & smile image. 16 $model=Image::Magick->new(); 17 $x=$model->ReadImage('model.gif'); 19 $model->Label('Magick'); 20 $model->Set(background=>'white'); 34 $example=$model->Clone(); 40 $example=$model->Clone(); 46 $example=$model->Clone(); 52 $example=$model->Clone() [all...] |
/external/tensorflow/tensorflow/lite/toco/ |
tooling_util.h | 32 #include "tensorflow/lite/toco/model.h" 61 // Returns true if the given array is specified as a model input array. 62 bool IsInputArray(const Model& model, const string& array_name); 63 // Returns true if the given array is specified as a model output array. 64 bool IsOutputArray(const Model& model, const string& array_name); 66 bool IsArrayConsumed(const Model& model, const string& name); 67 int CountTrueOutputs(const Model& model, const Operator& op) [all...] |
toco_tooling.h | 21 #include "tensorflow/lite/toco/model.h" 27 // Imports the input file into a Model object. 28 std::unique_ptr<Model> Import(const TocoFlags& toco_flags, 32 // Transforms a Model. The resulting Model is ready to be passed 35 Model* model); 36 inline void Transform(const TocoFlags& toco_flags, Model* model) { 37 auto s = TransformWithStatus(toco_flags, model); [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
StringLoader.java | 1 package com.bumptech.glide.load.model; 10 * A model loader for handling certain string models. Handles paths, urls, and any uri string with a scheme handled by 23 public DataFetcher<T> getResourceFetcher(String model, int width, int height) { 25 if (model.startsWith("/")) { 26 uri = toFileUri(model); 28 uri = Uri.parse(model); 31 uri = toFileUri(model);
|
/external/libtextclassifier/annotator/ |
zlib-utils.cc | 28 // Compress rule fields in the model. 29 bool CompressModel(ModelT* model) { 32 TC3_LOG(ERROR) << "Cannot compress model."; 37 if (model->regex_model != nullptr) { 38 for (int i = 0; i < model->regex_model->patterns.size(); i++) { 39 RegexModel_::PatternT* pattern = model->regex_model->patterns[i].get(); 48 if (model->datetime_model != nullptr) { 49 for (int i = 0; i < model->datetime_model->patterns.size(); i++) { 50 DatetimeModelPatternT* pattern = model->datetime_model->patterns[i].get(); 59 for (int i = 0; i < model->datetime_model->extractors.size(); i++) [all...] |
/external/clang/utils/ |
modfuzz.py | 22 def valid(self, model): 24 if i not in model.decls: 27 if i in model.decls: 31 def apply(self, model, name): 33 model.decls[i] = True 34 model.source += self.text % {'name': name} 90 model = CodeModel() 94 for d in mutations(model): 95 d(model) 97 if not model.fails() [all...] |
/cts/tests/openglperf2/jni/graphics/ |
ProgramNode.h | 25 void drawProgram(Matrix& model, Matrix& view, Matrix& projection); 27 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection); 28 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
|
SceneGraphNode.h | 27 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0; 28 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0; 29 void draw(Program& program, Matrix& model, Matrix& view, Matrix& projection);
|