- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 345 for SmallVector (0.27 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
} // Splits into lines. SmallVector<StringRef, 8> lines; file->getBuffer().split(lines, "\n", -1, false); // The resize method is used since split operator puts tail value in the end // without splitting the leftovers. if (op.getVocabSize() != -1) lines.resize(op.getVocabSize()); // Map each line to line number, starting from zero. SmallVector<int64_t, 8> line_nums;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc
const auto test_func = module_op_ref->lookupSymbol<func::FuncOp>("test_fold_constant"); ASSERT_THAT(test_func, NotNull()); Operation* mul_op = FindOperationOfType<TF::MulOp>(test_func); SmallVector<Value> results = ConstantFoldOpIfPossible(mul_op); EXPECT_THAT(results, SizeIs(1)); EXPECT_TRUE(isa<TF::ConstOp>(results[0].getDefiningOp())); } TEST_F(ConstantFoldingTest, NotFoldingIdentity) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
// Rewrites here should run before TF to MHLO op legalizations are run. #include <memory> #include <string> #include <utility> #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Casting.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/IR/BuiltinTypeInterfaces.h" // from @llvm-project #include "mlir/IR/BuiltinTypes.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
contraction, "cannot fuse with the subsequent op as it's not supported by the " "target device."); } SmallVector<Location, 3> locations{contraction.getLoc(), bias_add.getLoc()}; SmallVector<Attribute, 2> fused_ops{StringAttr::get( context, bias_add.getOperation()->getName().stripDialect())}; // BiasAdd may or may not feed into an activation function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
#include <optional> #include <string> #include <utility> #include "absl/memory/memory.h" #include "absl/strings/string_view.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Casting.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" #include "mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
} } // The While ops operands and result types need to match SmallVector<Value, 4> new_operands; SmallVector<Value, 4> new_body_yield; SmallVector<bool, 4> removed_operand(while_op.getNumOperands(), false); llvm::SmallVector<Type, 4> types; new_operands.reserve(while_op.getNumOperands()); new_body_yield.reserve(while_op.getNumOperands());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
// shapes. LogicalResult BroadcastGradientArgsOp::verify() { BroadcastGradientArgsOp op = *this; SmallVector<int64_t, 4> s0_shape, s1_shape; DenseIntElementsAttr s0, s1; if (!ExtractInputConstShape(op, s0, s1, s0_shape, s1_shape)) return success(); // If both shape is known const, try to validate shape on them as well. SmallVector<int64_t, 4> bcasted_shape; if (!OpTrait::util::getBroadcastedShape(s0_shape, s1_shape, bcasted_shape))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/check_control_dependencies.cc
TFExecutorCheckControlDependencies> { public: void runOnOperation() override; }; using ResourceIdVec = llvm::SmallVector<std::pair<TF::ResourceId, bool>>; // MapVector provides both fast lookup and deterministic iteration order. using IslandToIslandMapVec = llvm::MapVector<IslandOp, llvm::SmallVector<IslandOp>>; using IslandToIslandHashMap = llvm::SmallDenseMap<IslandOp, IslandOp>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc
/*duplicate_shape_determining_constants=*/true, /*unfreeze_constants=*/false, checkpoint_dir, /*debug_name=*/ absl::StrCat(debug_name_prefix, kExportStepSuffix)}; TF_ASSIGN_OR_RETURN(const SmallVector<AssetFileDef> asset_file_defs, RunExportPasses(export_opts, ctx, module_op)); return ConvertMlirModuleToExportedModel( module_op, checkpoint_dir, function_aliases,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:11:25 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
#include "tensorflow/compiler/mlir/tensorflow/utils/device_util.h" #include <memory> #include <string> #include <tuple> #include <utility> #include "llvm/ADT/SmallVector.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/IR/Attributes.h" // from @llvm-project #include "mlir/IR/Builders.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0)