- Sort Score
- Result 10 results
- Languages All
Results 31 - 36 of 36 for hasAttr (0.17 sec)
-
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
}; return llvm::all_of(op->getOperandTypes(), is_not_variant) && llvm::all_of(op->getResultTypes(), is_not_variant); }; auto is_set_item_legal = [](Operation *op) { return op->hasAttr("resize_if_index_out_of_bounds") && op->getAttr("resize_if_index_out_of_bounds") .cast<mlir::BoolAttr>() .getValue(); }; ConversionTarget target(*context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return changed; } bool ShapeInference::InferShapeForFunctionAttachedToXlaHostCompute( XlaHostComputeOp op) { const std::string kShapeInferenceGraph = "shape_inference_graph"; if (!op->hasAttr(kShapeInferenceGraph)) { return false; } ModuleOp module = op->getParentOfType<ModuleOp>(); func::FuncOp func = module.lookupSymbol<func::FuncOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
// attribute. This provides a hook for the user to represent the variable // tensor in the MLIR level. if (auto* inst = value.getDefiningOp(); inst && inst->hasAttr("tfl.is_variable")) { is_variable = true; } bool has_rank = type.hasRank(); if (shape_signature.empty()) { return tflite::CreateTensor(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
if i >= 0 && i < h.sigTParams.Len() && t == h.sigTParams.At(i) { return 9173 + 3*uint32(i) } } return h.hashPtr(t.Obj()) } // hashPtr hashes the pointer identity of ptr. It uses h.ptrMap to ensure that // pointers values are not dependent on the GC. func (h Hasher) hashPtr(ptr any) uint32 { if hash, ok := h.ptrMap[ptr]; ok { return hash } hash := uint32(reflect.ValueOf(ptr).Pointer())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
rewriter.getStringAttr(sharding_proto.SerializeAsString())); } else { data_and_token->setAttr(kShardingAttr, op.get_XlaShardingAttr()); } } if (op->hasAttr("layouts")) { // Append a UnitAttr for the "token" operand of the mhlo.infeed op here to // avoid compilation failure when exporting "layouts" attribute of the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
cmd/storage-rest-server.go
s.writeErrorResponse(w, errInvalidArgument) return } var verifier *BitrotVerifier if r.Form.Get(storageRESTBitrotAlgo) != "" { hashStr := r.Form.Get(storageRESTBitrotHash) var hash []byte hash, err = hex.DecodeString(hashStr) if err != nil { s.writeErrorResponse(w, err) return } verifier = NewBitrotVerifier(BitrotAlgorithmFromString(r.Form.Get(storageRESTBitrotAlgo)), hash)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 44.8K bytes - Viewed (0)