- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,179 for OP (0.03 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
Operation *op, const ClusteringPolicySet &policies, const std::function<bool(Operation *op)> &filter) { // Check that op has no side effects. This guarantees that we will not // reorder side-effecting ops during cluster formation. if (!isMemoryEffectFree(op)) return std::nullopt; // Operation rejected by the custom filter. if (filter && !filter(op)) return std::nullopt;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/configuration/project/LifecycleProjectEvaluatorTest.groovy
assert op.failure instanceof ProjectConfigurationException assert op.failure.message == "A problem occurred configuring <project>." assert op.failure.cause.is(failureCause) } else { assert resultType.isInstance(op.result) assert op.failure == null } } List<TestBuildOperationRunner.Log.Record> getOperations() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 13:46:07 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
operand = rewriter.create<CastOp>(op.getLoc(), tensor_type_f32, operand); } Value result = rewriter.create<MatMulOp>( op.getLoc(), op.getProduct().getType(), operands[0], operands[1], op.getTransposeA(), op.getTransposeB()); rewriter.replaceOp(op, {result}); return success(); } }; // Lowers _UnaryOpsComposition op as a series of original TensorFlow ops that
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
func.walk([&](mlir::TF::ReadVariableOp op) { auto sym = lookupGlobalTensor(func, op.getResource(), syms, opToName); success &= !!sym; if (!success) return; OpBuilder builder(op); auto load = builder.create<mlir::ml_program::GlobalLoadOp>( op.getLoc(), op.getValue().getType(), sym); op.getValue().replaceAllUsesWith(load.getResult()); op.erase(); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
auto update_from_op = [&](Operation* op) { been_defined.insert(op->getResults().begin(), op->getResults().end()); for (Value input : op->getOperands()) { if (been_defined.contains(input)) { continue; } results.insert(input); } }; for (Operation* op : partition_ops) { update_from_op(op); op->walk<WalkOrder::PreOrder>([&](Block* nested_block) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc
// Create a new dequantize op that is propagated. rewriter.setInsertionPointAfter(user_op); TF::PartitionedCallOp new_dequantize_op = cast<TF::PartitionedCallOp>(rewriter.clone(*original_dequantize_op)); // Skip the original dequant op and connect the op before dequantize to the // user op. user_op->setOperand(user_idx, op_before_dequantize);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
// old ConstantOp is guaranteed to have one F32->F16 convert op regardless // of its number of users. rewriter.setInsertionPointAfter(op); // create new F16 constant op in that location ConstantOp new_const = rewriter.create<ConstantOp>( op->getLoc(), new_result_type, new_value_attr); ConvertOp dcast = rewriter.create<ConvertOp>(op->getLoc(), old_result_type, new_const);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
}) .wasInterrupted(); } // Returns whether `op` or any ancestors of `op` are outside compiled. bool HasOutsideCompilationAncestor(Operation* op) { while (op) { if (op->hasAttr(kXlaOutsideCompilationAttr)) { return true; } op = op->getParentOp(); } return false; } // Returns whether any ancestors of `op` are outside compiled.
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/tf2xla/transforms/legalize_tf_communication.cc
} // Checks if an op is a TF/XLA communication op. bool IsCommunicationOp(Operation* op) { return isa<TF::_XlaHostComputeMlirOp, TF::XlaSendToHostOp, TF::XlaRecvFromHostOp>(op); } // Checks if an op is a supported HLO control flow op. bool IsControlFlowOp(Operation* op) { return isa<IfOp, WhileOp>(op); } // Collects control flow op ancestors of a given op, up until FuncOp. If any
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_custom_call_to_composite.cc
auto calledComputations = op.getCalledComputations(); if (!calledComputations || calledComputations.size() != 1) return op->emitError("expected exactly one called_computation"); auto decomposition = mlir::cast<FlatSymbolRefAttr>(calledComputations[0]); auto composite = rewriter.create<mlir::stablehlo::CompositeOp>( op.getLoc(), op.getResultTypes(), op.getOperands(), name.str(), attrs, decomposition.getValue());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0)