- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 154 for result_types (0.38 sec)
-
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
} builder_.create<func::ReturnOp>(func_.getLoc(), ret_operands); auto arg_types = body.getArgumentTypes(); auto result_types = body.getTerminator()->getOperandTypes(); func_.setType(FunctionType::get(func_.getContext(), arg_types, result_types)); *f = new MlirFunction(std::move(context_), std::move(module_), func_); return absl::OkStatus(); } extern "C" {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
// Updates func argument type to have the updated input shape. void UpdateFuncType(func::FuncOp func) { auto arg_types = func.front().getArgumentTypes(); auto result_types = func.front().getTerminator()->getOperandTypes(); func.setType(FunctionType::get(func.getContext(), arg_types, result_types)); } void HandleFuncOp(Operation* op) { auto func = llvm::cast<func::FuncOp>(op); UpdateFuncType(func); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
if (x_type != result_type) { x = builder.create<BroadcastInDimOp>(loc, result_type, x, broadcast_dims); } if (y_type != result_type) { y = builder.create<BroadcastInDimOp>(loc, result_type, y, larger_broadcast_dims); } } else { if (x_type != result_type) { x = builder.create<BroadcastInDimOp>(loc, result_type, x,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
SmallVector<Value> inputs{op.getInput()}; SmallVector<Value> init_values{op.getInitValue()}; SmallVector<Type> result_types{op.getResult().getType()}; ReplaceTfOpWithNewOp<TF::XlaVariadicReduceV2Op>( rewriter, op, result_types, inputs, init_values, op.getDimensionsToReduce(), op.getReducer()); return ::mlir::success(); }; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
// already set. auto symbol = mlir::SymbolRefAttr::get(builder.getContext(), func.getSymName()); auto result_types = func.getResultTypes(); auto caller = builder.create<TF::StatefulPartitionedCallOp>( loc, result_types, operands.getArrayRef(), symbol, /*config=*/builder.getStringAttr(""), /*config_proto=*/builder.getStringAttr(""),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
TypeRange operand_types, TypeRange result_types, TypeRange region_argument_types) { llvm::SmallVector<Type, 4> types; types.reserve(operand_types.size()); for (auto entry : llvm::zip(operand_types, result_types, region_argument_types)) { auto operand_type = mlir::cast<TensorType>(std::get<0>(entry)); auto result_type = mlir::cast<TensorType>(std::get<1>(entry));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
mlir::TF::_XlaCompileMlirPlaceholderProgramKeyOp CreateCompilationKeyPlaceholder(Location loc, OpBuilder& builder) { auto result_type = RankedTensorType::get({3}, builder.getType<mlir::TF::StringType>()); return builder.create<mlir::TF::_XlaCompileMlirPlaceholderProgramKeyOp>( loc, /*program=*/result_type, llvm::ArrayRef<Value>{}); } // Creates a `tf_device.launch` to wrap cluster ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
if (shape_value) { return rewriter.createOrFold<mhlo::DynamicBroadcastInDimOp>( loc, result_type, value1d, shape_value, dims); } assert(result_type.hasStaticShape()); return rewriter.create<mhlo::BroadcastInDimOp>(loc, result_type, value1d, dims); } // Gets the shape of operand, assuming it is a dynamic shape with static rank.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
llvm::function_ref<APFloat(APFloat)> calculate) { assert(IsF32ShapedType(result_type) || IsBF16ShapedType(result_type)); auto result_shape_type = result_type.cast<ShapedType>(); if (!result_shape_type.hasStaticShape()) return {}; if (auto dense_elements = operand.dyn_cast_or_null<DenseElementsAttr>()) { SmallVector<APFloat, 16> new_values;
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.cc
// result of 'resultType'. If a conversion can not be generated, nullptr // should be returned. Operation *materializeCallConversion(OpBuilder &builder, Value input, Type result_type, Location conversion_loc) const final { if (!mlir::isa<TensorType>(result_type) || !mlir::isa<TensorType>(input.getType()))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0)