- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 147 for SmallVector (0.29 sec)
-
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/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/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/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/lite/transforms/reduce_while_operands.cc
if (!consumed_ops.contains(&op) && !IsConstant(&op)) { op.erase(); } body.eraseArguments(erase_indices); cond.eraseArguments(erase_indices); llvm::SmallVector<Value> new_operands; llvm::SmallVector<Type> new_result_types; new_operands.reserve(n - erase_indices.size()); new_result_types.reserve(n - erase_indices.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc
==============================================================================*/ #include "tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.h" #include <string> #include "absl/log/log.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/Pass/PassManager.h" // from @llvm-project #include "mlir/Transforms/Passes.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 16:09:14 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
#include "absl/base/casts.h" #include "absl/container/inlined_vector.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "mlir/IR/Attributes.h" // from @llvm-project #include "mlir/IR/Builders.h" // from @llvm-project #include "mlir/IR/BuiltinTypeInterfaces.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
public: // Implements method required for `ResourceHandleAllocatorInterface`. llvm::SmallVector<mlir::TF::ResourceHandleValueAndId> GetResourceHandleValueAndIdList( llvm::SmallDenseMap<mlir::TF::ResourceHandle, int64_t>& resource_handle_id_map, int64_t& next_id) { llvm::SmallVector<mlir::TF::ResourceHandleValueAndId> resource_vec; for (Value resource :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0)