- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 374 for gotType (0.14 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
auto ty = mlir::dyn_cast<TensorType>(op.getType()); if (!ty || !mlir::isa<FloatType, IntegerType, ComplexType>(ty.getElementType())) return failure(); Location loc = op.getLoc(); Value result = rewriter.create<mhlo::ConstantOp>(loc, op.getValue()); if (result.getType() != op.getType()) result = rewriter.create<tensor::CastOp>(loc, op.getType(), result); rewriter.replaceOp(op, result);
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/lite/flatbuffer_operator.h
// matches the expected type otherwise an error should be thrown, but for now // we're just returning empty vector template <> inline std::vector<bool> GetVector(DenseElementsAttr elements) { auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(1)) { auto vec = llvm::to_vector( llvm::map_range(elements.getValues<bool>(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
for (auto operand : candidate_op->getOperands()) { Type operand_type = operand.getType(); if (mlir::isa<NoneType>(operand_type)) { inputs.push_back(operand); continue; } auto ele_type = mlir::cast<TensorType>(operand.getType()).getElementType(); if (auto dq_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
if (!mlir::isa<quant::UniformQuantizedType>( (getElementTypeOrSelf(op.getOutput().getType())))) return failure(); ElementsAttr input_tensor = qconst_op.getValue(); assert(perm_tensor.getType().getRank() == 1); const int num_dimensions = input_tensor.getShapedType().getRank(); assert(perm_tensor.getType().getNumElements() == num_dimensions);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h
// we have separate ops for them. If only one of them is used then the other // one will be garbage collected later. if (!mlir::isa<ShapedType>(operand.getType())) return failure(); auto operand_type = mlir::cast<ShapedType>(operand.getType()); if (operand_type.getElementType().isInteger(1)) { // TF does not support min or max on boolean (int1) arguments. // Use AnyOp for MaxOp and AllOp for MinOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.td
BuildableType<"$_builder.getType<::mlrt::compiler::FutureType>()"> { let description = [{ `!mlrt.future type` represents a C++ mlrt::Future. }]; } def MlrtPromiseType : DialectType<Mlrt_Dialect, CPred<"$_self.isa<::mlrt::compiler::PromiseType>()">, "!mlrt.promise type">, BuildableType<"$_builder.getType<::mlrt::compiler::PromiseType>()"> { let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
const size_t idx = shape_offset_idx.index(); if (failed(verifyCompatibleShape(shape.getType(), offset.getType()))) return op.emitOpError() << "requires operand and result " << idx << " to have compatible shapes"; auto ranked_shape = mlir::dyn_cast<RankedTensorType>(shape.getType()); if (!ranked_shape) continue; if (ranked_shape.getRank() != 1)
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/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc
const int lhs_rank = mlir::cast<ShapedType>(lhs.getType()).getShape().size(); const int rhs_rank = mlir::cast<ShapedType>(rhs.getType()).getShape().size(); const std::string einsum_equation = CreateEinsumEquation(dot_dimension_numbers, lhs_rank, rhs_rank); return builder.create<TF::EinsumOp>(loc, output.getType(), input_arguments,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
for (OpOperand& operand : op.getOpOperands()) { if (mlir::isa<TF::ResourceType>( getElementTypeOrSelf(operand.get().getType()))) { return op.emitOpError() << "found unexpected type " << operand.get().getType() << " of operand #" << operand.getOperandNumber() << ", resource type operands are expected to have been "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
src/net/unixsock_posix.go
var sotype int switch net { case "unix": sotype = syscall.SOCK_STREAM case "unixgram": sotype = syscall.SOCK_DGRAM case "unixpacket": sotype = syscall.SOCK_SEQPACKET default: return nil, UnknownNetworkError(net) } switch mode { case "dial":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.6K bytes - Viewed (0)