- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 232 for Operands (0.14 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
// NOLINTNEXTLINE llvm::SmallVectorImpl<mlir::NamedAttribute> &attributes); // While the last several tensors could be optional tensors for an tfl op, the // number of input operands could vary. This function gets the min/max number of // operands from tflite op name. llvm::MinMax OperandNumbersMinMax(llvm::StringRef op_name); // Populates the `custom_code` and `custom_options` to attributes.
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/tensorflow/tests/tf_device_ops_invalid.mlir
} func.return } // ----- // Check that a replicate replicated inputs where operand sizes do not match // 'n' is invalid. func.func @parser_replicate_operand_count(%arg0: tensor<*xf32>) { tf_device.replicate([%arg0, %arg0, %arg0] as %input0: tensor<*xf32>) {n = 2 : i32} { // expected-error@-1 {{'tf_device.replicate' expects number of operands for replicated input 0 to be 'n' (2), got 3}} } func.return } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 14 15:35:49 UTC 2023 - 9.8K bytes - Viewed (0) -
src/internal/types/testdata/check/shifts.go
var s uint _ = 1.0 /* ERROR "shifted operand 1.0 (type float64) must be integer" */ <<s == 1 _ = 1.0 /* ERROR "shifted operand 1.0 (type float64) must be integer" */ <<s == 1.0 _ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s == 1.0 _ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s + 1.0 == 1 _ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s + 1.1 == 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
std::unique_ptr<OpQuantSpec> spec = GetTFOpQuantSpec(op); const absl::flat_hash_set<int> operands = spec->quantizable_operands; if (operands.size() != 1) return failure(); int weight_operand_idx = *operands.begin(); Operation* weight_op = op.getOperand(weight_operand_idx).getDefiningOp(); DenseFPElementsAttr attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc
SmallVector<Value, 4> else_returns; for (int i = 1; i < state_size + 1; i++) { else_returns.push_back(body_args[i]); } builder.create<TF::YieldOp>(loc, /*operands=*/else_returns); // Then branch gets the data and calls the reduce_function. auto& then_branch = dataset_if.getThenBranch(); then_branch.push_back(new Block);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/quantization_context.h
// The map contains all the quantization parameters which are required to // satisfy the same operands and results constraint. The keys of this map // are the values from `operand_states_` and `result_state_`. std::unordered_map<int, RequantizeState> rescale_states_; // Maps of indexes to the propagation state vector from the ops operands, // results and arguments. llvm::DenseMap<OpValue, int> operand_states_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
for (Value operand : op.getOperands()) { if (mlir::isa<tf_executor::TokenType>(operand.getType())) continue; if (mlir::isa<tf_executor::ControlType>(operand.getType())) break; if (is_switch && llvm::isa_and_nonnull<tf_executor::LoopCondOp>(operand.getDefiningOp())) continue; auto it = value_to_device.find(operand);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
TFRTensorType unconstrainted_tensor_type = builder.getType<TFRTensorType>(); // Create the new operands. This is mapping the operands from the target // TF ops to the TFR function arguments. If the TFR function argument is // a tensor_list, a "tfr.build_list" op is used to concat the available // TF op operands. If the TFR function argument isn't a tensor/tensor_list,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
} // If operand is TF const op, create MHLO constant op from the contents. // Otherwise convert the operand to the desired type. FailureOr<Value> CreateConstantOrConvertOp(Operation *op, Value operand, TensorType new_operand_type, PatternRewriter &rewriter) { // Check whether the rhs operand has constant op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h
op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue().str() == QuantTraitValues[QuantizationTrait::FullyQuantizable]; } // Returns true if `op` has two operands and one result and only second operand // is quantized. bool IsHybridQuantizedOp(Operation* op); // Returns whether a given `stablehlo.dot_general` can be legalizable to // `tfl.fully_connected`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0)