- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 88 for operands_ (0.22 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc
#include "mlir/Support/LogicalResult.h" // from @llvm-project #include "stablehlo/dialect/StablehloOps.h" // from @stablehlo namespace mlir::odml { namespace { // Helper class for parsing operands to a foldable operation. class FoldAdaptor { public: // Returns std::nullopt if the operation cannot be folded. static std::optional<FoldAdaptor> Create(Operation* operation) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 06:11:55 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
BFloat16TypePattern(TypeConverter& converter, MLIRContext* ctx) : ConversionPattern(converter, MatchAnyOpTypeTag(), /*benefit=*/1, ctx) {} LogicalResult matchAndRewrite( Operation* op, const ArrayRef<Value> operands, ConversionPatternRewriter& rewriter) const override { if (getTypeConverter()->isLegal(op)) { return failure(); } if (isa<mlir::stablehlo::BitcastConvertOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
if (!cluster_id) return WalkResult::advance(); llvm::SmallVector<int, 4> dynamic_shape_arg_index; // Traverse the operands of the cluster func op and find which operand // is returned by TPUAnnotateTensorsWithDynamicShapeOp. for (const auto& cluster_func_operand : llvm::enumerate(cluster_func_op.getOperands())) {
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/quantization/common/uniform_quantized_types.h
// Returns true if a type is quantized tensor type. bool IsQuantizedTensorType(Type type); // Returns true if all operands and results are quantized. bool IsOpFullyQuantized(Operation* op); // Returns true iff none among operand and result tensors are quantized. bool IsOpNotQuantized(Operation* op); } // namespace quant } // namespace mlir
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/gpu_ops.td
Example: %device_tensor = gpurt.transfer_to_device %cpu_tensor }]; let arguments = (ins TFTensorType); let results = (outs TFTensorType); let assemblyFormat = "operands attr-dict"; } // TODO(b/260267885): We may add a device argument when we want to support // GPU MIG. def TransferFromDeviceOp: Gpu_Op<"transfer_from_device"> { let summary = "Transfer a tensor from device.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 3.3K bytes - Viewed (0) -
src/math/big/floatexample_test.go
// 2 // 4 // 8 // 16 } func ExampleFloat_Cmp() { inf := math.Inf(1) zero := 0.0 operands := []float64{-inf, -1.2, -zero, 0, +1.2, +inf} fmt.Println(" x y cmp") fmt.Println("---------------") for _, x64 := range operands { x := big.NewFloat(x64) for _, y64 := range operands { y := big.NewFloat(y64) fmt.Printf("%4g %4g %3d\n", x, y, x.Cmp(y)) } fmt.Println() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h
// TODO(fengliuai): supports a configurable accumulator bit width. template <int Bias, int... Operands> class AccumulatorUniformScale { public: template <typename ConcreteType> class Impl : public QuantizationSpecTraitBase< ConcreteType, AccumulatorUniformScale<Bias, Operands...>::Impl> { public: // Whether the index-th operand is a bias. static bool IsBias(int index) { return index == Bias; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_dataflow.cc
public: using TensorflowDataflowAnalysis< ResourceConstructingOps>::TensorflowDataflowAnalysis; void visitOperation(Operation *op, ArrayRef<const StateT *> operands, ArrayRef<StateT *> results) override { if (ForwardThroughTFOperation(op, operands, results)) return; setAllToEntryStates(results); } ~ResourceDataflowAnalysis() override = default; }; class IsCompositeDataflowAnalysis
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc
llvm::SmallVector<mlir::Type, 4> operand_types; if (options.has_chain) operand_types.push_back(chain_type); if (parser.resolveOperands(in_chains, operand_types, loc, result.operands) || parser.resolveOperands(operands, tensor_type, result.operands)) return mlir::failure(); if (options.has_chain) result.types.push_back(chain_type); result.types.append(num_results, tensor_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.h
} else { return {}; } // Fold: Op(Operand, Identity) -> Operand. if (rhs_attr && is_valid_broadcasting(lhs_type, rhs_type, result_type)) { if (rhs_attr.isSplat() && rhs_attr.getSplatValue<Attribute>() == identity_attr) return arithmetic_op.getX(); } // Fold: Op(Identity, Operand) -> Operand for commutative operations. if (lhs_attr && is_commutative &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0)