- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 121 for vecotr (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
if (!session) return module.emitOpError() << "no session provided"; // Read all resource variables from the session. std::vector<std::string> variable_names; variable_names.reserve(resource_names.size()); for (StringRef name : resource_names) variable_names.push_back(name.str()); std::vector<Tensor> resource_tensors; Status status = session->Run( /*inputs=*/{}, variable_names,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
int GetQuantizationDimIndex() { return 0; } // SparseOpInterface: std::vector<int> GetSparseOperands() { return {1}; } std::vector<std::vector<int>> GetFloatBlockSize() { return {}; } std::vector<std::vector<int>> GetQuantizedBlockSize() { return {}; } // DynamicRangeQuantizedOpInterface: std::vector<int> GetQuantizableOperandIndices() { return {1}; } }]; } def TFL_AveragePool2DOp:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.h
#define TENSORFLOW_COMPILER_MLIR_LITE_QUANTIZATION_LITE_QUANTIZE_WEIGHTS_H_ #include <memory> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "absl/container/flat_hash_set.h" #include "flatbuffers/flatbuffer_builder.h" // from @flatbuffers #include "tensorflow/compiler/mlir/lite/schema/schema_generated.h" #include "tensorflow/lite/c/c_api_types.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/converter_python_api.h
#ifndef TENSORFLOW_COMPILER_MLIR_LITE_PYTHON_CONVERTER_PYTHON_API_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_PYTHON_CONVERTER_PYTHON_API_H_ #include <Python.h> #include <string> #include <vector> #include "tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h" namespace tflite { // Convert a model represented in `input_contents`. `model_flags_proto`
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 18:18:30 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/flatbuffer_compatibility_test.cc
return false; } *buf = s; return true; } bool ParseFile(flatbuffers::Parser *parser, const std::string &filename, const std::string &contents) { std::vector<const char *> include_directories; auto local_include_directory = flatbuffers::StripFileName(filename); include_directories.push_back(local_include_directory.c_str()); include_directories.push_back(nullptr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 14:28:27 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc
} private: // The path to save calibration statistics data. std::unique_ptr<tsl::WritableFile> output_file_; // The id and calibration method of preceding CustomAggregator ops. std::vector<std::string> ids_; std::vector<int32_t> calibration_methods_; // Map from id to its collector instance. absl::flat_hash_map<std::string, std::unique_ptr<CalibrationStatisticsCollectorBase>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 01:31:23 UTC 2024 - 8K bytes - Viewed (0) -
pkg/test/framework/components/prometheus/kube.go
} return got, nil } func Sum(val model.Value) (float64, error) { if val.Type() != model.ValVector { return 0, fmt.Errorf("value not a model.Vector; was %s", val.Type().String()) } value := val.(model.Vector) valueCount := 0.0 for _, sample := range value { valueCount += float64(sample.Value) } if valueCount > 0.0 { return valueCount, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc
auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model_name); return FlatBufferModel::BuildFromFile(model_path.c_str()); } template <typename T> std::vector<T> GetAsVector(const flatbuffers::Vector<T>* vec) { return std::vector<T>(vec->begin(), vec->end()); } void VerifyQuantizationScale( const QuantizationParameters& float_quant_params,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 73.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.h" #include <memory> #include <optional> #include <string> #include <unordered_set> #include <utility> #include <vector> #include "absl/algorithm/container.h" #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/log/log.h" #include "absl/status/status.h" #include "absl/status/statusor.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc
==============================================================================*/ #include "tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.h" #include <optional> #include <string> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 4.6K bytes - Viewed (0)