- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for GetBoolAttr (0.27 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc
mlir::TF::CopyDeviceAndUnderscoredAttributes(call_op, cluster); cluster->setAttr(mlir::TF::kClusterOutlinedFunctionNameAttr, callee_name); cluster->setAttr(mlir::TF::kAllowSoftPlacementAttr, builder.getBoolAttr(true)); } // Encapsulate the first partitioned call that can be reached from // `func` and is with compilation markers in a device cluster. For nested calls,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 19:09:44 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc
case AttrValue::kS: return builder->getStringAttr(value.s()); case AttrValue::kF: return builder->getFloatAttr(builder->getF32Type(), value.f()); case AttrValue::kB: return builder->getBoolAttr(value.b()); case AttrValue::kType: { mlir::Type type; TF_RETURN_IF_ERROR(ConvertDataType(value.type(), *builder, &type)); return mlir::TypeAttr::get(type); } case AttrValue::kShape:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
builder.getBoolAttr(true)); ConstOp shape = builder.create<ConstOp>(loc, shape_attr); shape->setAttr(kICIWeightDistributionMlirBridgeMarker, builder.getBoolAttr(true)); FillOp fill = builder.create<FillOp>(loc, shape, zero); fill->setAttr(kICIWeightDistributionMlirBridgeMarker, builder.getBoolAttr(true)); return fill; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h
auto tf_reduce_op = rewriter.create<BooleanReduce>( reduce_op.getLoc(), reduce_op->getResult(0).getType(), operand, reduction_indices, /*keep_dim=*/rewriter.getBoolAttr(false)); auto tf_argreduce_op = rewriter.create<ArgReduce>( reduce_op.getLoc(), reduce_op->getResult(1).getType(), operand, reduction_indices);
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/tensorflow/transforms/tf_data_optimization.cc
auto num_parallel_calls_op = rewriter.create<CastOp>( op.getLoc(), UnrankedTensorType::get(rewriter.getIntegerType(64)), batchInputOp.getNumParallelCalls(), rewriter.getBoolAttr(false)); if (op.getMetadata() != batchInputOp.getMetadata()) { return failure(); } auto fused_op = rewriter.create<MapAndBatchDatasetOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
Type expected = fn_type.getInput(i); if (val.getType() != expected) { val = builder->create<TF::CastOp>(loc, expected, val, /*Truncate=*/builder->getBoolAttr(false)); } operands.push_back(val); } return builder->create<func::CallOp>(loc, fn, operands).getOperation(); } // Prepares for jump to the given block by introducing necessary tensor_cast
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
rewriter.getF32Type()); ::mlir::Value mean = rewriter.create<TF::MeanOp>( bn_op.getLoc(), mean_var_type, inputs, reduce_dim_op, /*keep_dims=*/rewriter.getBoolAttr(false)); // Compute variance Value shape_value = getShapeValue(bn_op.getLoc(), bn_op.getOperand(), rewriter); auto broadcast_mean = broadcastToFeatureDim(
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/transforms/legalize_tf.cc
return rewriter.createOrFold<TF::CastOp>(loc, new_type, val, rewriter.getBoolAttr(false)); } return rewriter.createOrFold<TF::CastOp>( loc, UnrankedTensorType::get(new_ele_type), val, rewriter.getBoolAttr(false)); } // Utility function to- // 1. Create a tfl.const op with an int32_t values, from an MLIR Value, if the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
/*fused_activation_function=*/rewriter.getStringAttr("NONE"), /*weights_format=*/rewriter.getStringAttr("DEFAULT"), /*keep_num_dims=*/rewriter.getBoolAttr(true), /*asymmetric_quantize_inputs=*/mlir::BoolAttr()); rewriter.replaceOp(bmm_op, {fc_op.getResult(0)}); return success(); }; };
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/tpu_partitioned_op_conversion.cc
} if constexpr (is_input) { auto pi = builder.create<TF::TPUPartitionedInputV2Op>( op.getLoc(), op.getType(), op.getOperands(), builder.getI64ArrayAttr(partition_dims), builder.getBoolAttr(false), op.get_XlaShardingAttr()); op->replaceAllUsesWith(pi); } else { auto po = builder.create<TF::TPUPartitionedOutputV2Op>( op.getLoc(), op.getResultTypes(), op.getOperand(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0)