- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 87 for SmallVector (0.26 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc
void FindCustomAggregatorOps( Region& region, const std::unordered_set<std::string>& aggregator_ops_to_ignore, SmallVector<Value>& statistics_outputs, SmallVector<StringRef>& ids, SmallVector<int32_t>& calibration_methods) { for (auto op : region.getOps<TF::CustomAggregatorOp>()) { if (aggregator_ops_to_ignore.count(op.getId().str())) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h
#define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_LIFT_AS_FUNCTION_CALL_H_ #include "absl/base/nullability.h" #include "absl/status/statusor.h" #include "llvm/ADT/SmallVector.h" #include "mlir/Bytecode/BytecodeOpInterface.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: Fri May 10 04:07:09 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc
ArrayRef<int64_t> transpose_perm = transpose_op.getPermutation(); SmallVector<int64_t> new_padding_low = InvertPermutationToVector(pad_op.getEdgePaddingLow(), transpose_perm); SmallVector<int64_t> new_padding_high = InvertPermutationToVector(pad_op.getEdgePaddingHigh(), transpose_perm); SmallVector<int64_t> new_padding_interrier =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc
for (const auto &attr : GetEntryFunctionAttributeNames()) { if (func->hasAttr(attr)) { return true; } } return false; } llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module) { llvm::SmallVector<func::FuncOp> entry_funcs; module.walk([&](func::FuncOp func) { // A model may have multiple graphs, with each graph having its own entry.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
return } } )mlir"); FailureOr<SmallVector<AssetFileDef>> asset_file_defs = ConvertAssetArgs(*module_op); EXPECT_TRUE(succeeded(asset_file_defs)); EXPECT_THAT(*asset_file_defs, SizeIs(1));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc
} // Space for returned values. llvm::SmallVector<RCReference<AsyncValue>> results(compute->num_results()); compute->Execute(*exec_ctx_, exec_arguments, results); // Wait for the function execution to finish, as well as the side-effects. host_context_->Await(results); // Check that all results are available. llvm::SmallVector<Tensor> ret_values; for (unsigned i = 1; i < results.size(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
limitations under the License. ==============================================================================*/ #include <memory> #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/Attributes.h" // from @llvm-project #include "mlir/IR/BuiltinAttributes.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
// except the dynamic shape copy op. tf_device::LaunchOp CreateNewHostLaunchOpWithNewResult( tf_device::LaunchOp* old_launch_op, llvm::SmallVector<Value, 4>& new_launch_op_results) { OpBuilder builder(*old_launch_op); builder.setInsertionPointAfter(*old_launch_op); llvm::SmallVector<Type, 4> new_launch_op_results_types; for (Value result : new_launch_op_results) new_launch_op_results_types.push_back(result.getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
// Otherwise, output type has same rank as the input. return RankedTensorType::get( SmallVector<int64_t, 4>(rank, ShapedType::kDynamic), element_ty); } int64_t num_reduce_dim = 0; llvm::SmallVector<bool, 4> is_reduce_dim(rank, false); for (const APInt &index : indices.getValues<APInt>()) { int64_t dim = GetDimForAxis(index.getSExtValue(), rank);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc
loc, /*flags=*/QuantizationFlags::Signed, /*storageType=*/IntegerType::get(&context, /*width=*/8), /*expressedType=*/FloatType::getF32(&context), SmallVector<double>(scales), SmallVector<int64_t>(zero_points), quantization_dimension, /*storageTypeMin=*/llvm::minIntN(8) + (narrow_range ? 1 : 0), /*storageTypeMax=*/llvm::maxIntN(8)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0)