- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,239 for casts (0.1 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
// types match the result types. auto yield = cast<YieldOp>(region.front().getTerminator()); auto updated_results = llvm::to_vector<4>(yield.getOperands()); // If the yield types do not match the IfRegion result types, add appropriate // casts. rewriter.setInsertionPoint(yield); for (auto it : llvm::zip(op.getResultTypes(), updated_results)) {
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/tf2xla/transforms/legalize_tf.cc
// division can result in strange behavior. // // floordiv = cast(floordiv(cast(left), cast(right)))) // // %left_cast = cast(%left) // %right_cast = cast(%right) // %div = div(%left, %left) // %floored = floor(%div) // %floored_cast = cast(%floored) // // Required to manually specify the intermediate types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
RELEASE.md
* `tf.nn.embedding_lookup_sparse` * Optimized this function for some cases by fusing internal operations. * `tf.saved_model.SaveOptions`
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 730.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
// If there is a change in supporting more types in the TFLite cast op kernel, // the While loop outline pass should be updated since it inserts cast op(s) // after the TF -> TFL legalization pass is done. // LINT.IfChange def TFL_CastOp : TFL_Op<"cast", [ Pure, SameOperandsAndResultShape]> { let summary = "Cast operator"; let description = [{ Casts input from input type to output type. }];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc
llvm::StringRef ProcessIndexPath(mlir::ArrayAttr index_path) { if (index_path.size() == 1 && mlir::isa<mlir::StringAttr>(index_path[0])) { // TODO(chky): Support cases where index_path is not a single string. return mlir::cast<mlir::StringAttr>(index_path[0]).getValue(); } return ""; } absl::StatusOr<std::pair<tensorflow::DataType, tensorflow::PartialTensorShape>> ProcessTensorSpec(mlir::TensorType type) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/controlplane/controller/crdregistration/crdregistration_controller.go
), } c.syncHandler = c.handleVersionUpdate crdinformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: func(obj interface{}) { cast := obj.(*apiextensionsv1.CustomResourceDefinition) c.enqueueCRD(cast) }, UpdateFunc: func(oldObj, newObj interface{}) { // Enqueue both old and new object to make sure we remove and add appropriate API services.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
for (VariableV2Op variable_v2_op : variable_v2s_to_replace) { builder.setInsertionPoint(variable_v2_op); ShapedType shaped_type = mlir::cast<ShapedType>(variable_v2_op.getResult().getType()); TensorType tensor_type = mlir::cast<TensorType>(DropRefType(shaped_type)); StringAttr device_attr = variable_v2_op->getAttrOfType<StringAttr>("device");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
ShapedType type; InspectResult result = {}; if (auto cst = dyn_cast<ConstOp>(inst)) { attr = cst.getValue(); type = mlir::cast<ShapedType>(cst.getType()); } else if (auto cst = dyn_cast<QConstOp>(inst)) { attr = cst.getValue(); type = mlir::cast<ShapedType>(cst.getType()); } else { result.can_compress = false; return result; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
// Handle per tensor cases only. if (!mlir::isa<quant::UniformQuantizedType>( (getElementTypeOrSelf(op.getType())))) { return failure(); } // Remove identity reshape with both static result and input shape. auto result_type = mlir::cast<ShapedType>(op.getType()); auto input_type = mlir::cast<ShapedType>(op.getInput().getType()); // Constant folding
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Striped64.java
transient volatile int busy; /** Package-private default constructor */ Striped64() {} /** CASes the base field. */ final boolean casBase(long cmp, long val) { return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val); } /** CASes the busy field from 0 to 1 to acquire lock. */ final boolean casBusy() { return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 11.5K bytes - Viewed (0)