- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 87 for SmallVector (0.22 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc
namespace mlir::quant { namespace { void PackOperandTestHelper( const llvm::SmallVector<int64_t>& unpacked_shape, const llvm::SmallVector<int8_t>& unpacked_values, int pack_dim, const llvm::SmallVector<int64_t>& expected_packed_shape, const llvm::SmallVector<int8_t>& expected_packed_values) { MLIRContext context; OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context)));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc
// of the index path attribute. SmallVector<NamedAttribute> ReplaceBoundInputAttrWithIndexPathAttr( const ArrayRef<NamedAttribute> arg_attrs, const StringRef index_path, Builder& builder) { // Keep all other attributes except the tf_saved_model.bound_input attribute, // as we are replacing it with tf_saved_model.index_path. SmallVector<NamedAttribute> new_arg_attrs; for (auto arg_attr : arg_attrs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc
// and input devices, variables used by this function. llvm::SmallVector<llvm::StringRef, 4> input_names; llvm::SmallVector< std::pair<tensorflow::DataType, tensorflow::PartialTensorShape>, 4> input_specs; llvm::SmallVector<llvm::StringRef, 4> input_devices; llvm::SmallVector<mlir::Operation*, 4> bound_inputs; for (unsigned i = 0, e = func.getNumArguments(); i != e; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc
#include "mlir/Support/LLVM.h" // from @llvm-project namespace mlir { namespace TF { SmallVector<int64_t, 4> ReversePermutation(ArrayRef<int64_t> permutation) { SmallVector<int64_t, 4> reverse(permutation.size()); for (size_t i = 0; i < permutation.size(); ++i) { reverse[permutation[i]] = i; } return reverse; } SmallVector<int64_t, 4> GetDataFormatPermutation(StringRef from, StringRef to) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
for (Operation& op : nested_block->getOperations()) update_from_op(&op); }); } return SmallVector<Value>(results.getArrayRef()); } llvm::SmallVector<Value> AccumulateResultsDefinedWithin( const llvm::SetVector<Operation*>& partition_ops) { llvm::SmallVector<Value> values_for_results; for (Operation* op : partition_ops) { if (IsConstantOrNone(op)) { continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc
namespace mlir { namespace quant { namespace { // Folds the operation recursively and return the results. LogicalResult FoldOperation(OpBuilder& builder, Operation* op, SmallVector<Value>& results) { SmallVector<ElementsAttr> inputs; for (auto operand : op->getOperands()) { auto preceding_const_op = operand.getDefiningOp<TF::ConstOp>(); if (preceding_const_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc
: input_shapes_(input_shapes) {} void runOnOperation() override { // Parse `input_arg_shapes_` if provided (test only) SmallVector<ArrayRef<int64_t>> input_shapes_vec; absl::StatusOr<SmallVector<SmallVector<int64_t>>> parsed_shapes; if (!input_arg_shapes_.empty()) { parsed_shapes = ParseArgumentShapes(input_arg_shapes_); if (!parsed_shapes.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc
SmallVector<float> TransposeValues(const ArrayRef<float> values) const { SmallVector<float> transposed_values(values.size()); SmallVector<int64_t> current_indices = {}; TransposeRecursively(values, transposed_values, current_indices); return transposed_values; } // Returns the shape after permutation. SmallVector<int64_t> GetTargetShape() const { return target_shape_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc
void runOnOperation() override; }; LogicalResult HasNoNestedEntryFunctions( const llvm::SmallVector<func::FuncOp> &entry_funcs, SymbolTable &symtab) { auto calls_entry_functions = [&](SymbolUserOpInterface op) { llvm::SmallVector<func::FuncOp> callees; if (GetCallees(op, symtab, callees).failed()) { return false; } for (auto &callee : callees) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 19:29:14 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc
mlir::IntegerAttr op_key; mlir::IntegerAttr cost; mlir::StringAttr device; mlir::StringAttr op_name; mlir::SymbolRefAttr f; llvm::SmallVector<mlir::OpAsmParser::UnresolvedOperand, 4> in_chains; llvm::SmallVector<mlir::OpAsmParser::UnresolvedOperand, 4> operands; mlir::NamedAttrList op_attrs; mlir::NamedAttrList op_func_attrs; auto loc = parser.getNameLoc(); if (options.has_chain &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0)