- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 87 for SmallVector (0.2 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h
llvm::SmallVector<Value>& outputs); // Given a translated function with a single return value, unpack the tuple // results. mlir::LogicalResult UnpackTupleResults(mhlo::TupleOp tuple_result, llvm::SmallVector<Value>& outputs); // Tries to legalize the specified TensorFlow op, if supported. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
limitations under the License. ==============================================================================*/ #include <algorithm> #include <cstdint> #include <memory> #include <utility> #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Casting.h" #include "mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/IR/Attributes.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
return !attr || !mlir::isa<ElementsAttr>(attr); })) return failure(); SmallVector<ElementsAttr, 4> inputs; inputs.reserve(operands.size()); for (auto input : operands) { inputs.push_back(mlir::cast<ElementsAttr>(input)); } SmallVector<Attribute> constants; LogicalResult status = EvaluateOperation(inst, inputs, constants);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc
llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> cluster_func_ops; module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) { cluster_func_ops.push_back(cluster_func); }); EXPECT_EQ(cluster_func_ops.size(), 1); EXPECT_TRUE(mlir::succeeded(tensorflow::EraseClusterFuncs(cluster_func_ops))); llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> new_cluster_func_ops;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
return; } OpBuilder builder(func); FunctionType func_type = func.getFunctionType(); llvm::SmallVector<Type, 4> new_input_types(func_type.getInputs().begin(), func_type.getInputs().end()); llvm::SmallVector<Type, 4> new_output_types(func_type.getResults().begin(), func_type.getResults().end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K 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) -
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
#include "tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h" #include <string> #include <vector> #include "absl/strings/str_cat.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SMLoc.h" #include "llvm/Support/SourceMgr.h" #include "mlir/Dialect/Arith/IR/Arith.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 29 02:34:43 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
#include <memory> #include <string> #include <utility> #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.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 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc
} FailureOr<Attribute> GetTPUInfeedLayout(const ArrayRef<Type> types, OpBuilder &rewriter) { auto i64_type = rewriter.getIntegerType(64); if (types.size() > 1) { llvm::SmallVector<mlir::Attribute> v; v.reserve(types.size()); for (const mlir::Type &t : types) { if (mlir::isa<mhlo::TokenType>(t)) continue; auto layout = GetTPUInfeedLayout({t}, rewriter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
// in `tensorflow/compiler/mlir/tensorflow/translate/import_model.cc`. void FindQuantizationUnitsRecursively(Location loc, SmallVector<QuantizationUnit>& units) { if (!isa<FusedLoc>(loc)) return; auto set_node_and_func_name = [](QuantizationUnit& new_unit, StringRef name_loc_id) { if (name_loc_id.contains("@")) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0)