- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 98 for Fgetxattr (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
absl::StrCat("module_", module_name)); auto parent_module = entry_func->getParentOfType<ModuleOp>(); auto versions_attr = parent_module->getAttr(kVersionsAttr); if (!versions_attr) return parent_module.emitError(CreateMissingAttributeMsg(kVersionsAttr)); module_for_func.get().getOperation()->setAttr(kVersionsAttr, versions_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
func::FuncOp ResolveFunc(::mlir::SymbolTableCollection* table) { if (table) return table->lookupNearestSymbolFrom<func::FuncOp>(*this, getFAttr()); return SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(*this, getFAttr()); } // TODO(b/204997177): Deprecate and remove. func::FuncOp func() { return ResolveFunc(nullptr); } }]; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc
rewriter.getDenseI64ArrayAttr(kOihwToHwioPermutation)); // [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f] const auto new_dimension_nums = rewriter.getAttr<ConvDimensionNumbersAttr>( /*inputBatchDimension=*/0, /*inputFeatureDimension=*/3, /*inputSpatialDimensions=*/SmallVector<int64_t>{1, 2}, /*kernelInputFeatureDimension=*/2, /*kernelOutputFeatureDimension=*/3,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
auto range = llvm::make_filter_range(op->getUsers(), [&](Operation *user) { bool same_block = user->getBlock() == op->getBlock(); bool same_device = op->getAttr(kDeviceAttr) == user->getAttr(kDeviceAttr); return same_block && same_device && state.IsMember(user); }); return {range.begin(), range.end()}; } // Users of block argument must be in the same block.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h
} // Returns the function attribute for the given call op which is lifted for // quantization. inline FlatSymbolRefAttr GetFuncAttr(TF::PartitionedCallOp call_op) { return mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr()); } inline FlatSymbolRefAttr GetFuncAttr(TF::XlaCallModuleOp call_op) { return call_op->getAttrOfType<FlatSymbolRefAttr>( TF::kStablehloEntryFunctionAttrName); }
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/quantization/tensorflow/passes/preprocess_op.cc
} LogicalResult matchAndRewrite(TF::PartitionedCallOp op, PatternRewriter& rewriter) const override { const auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(op.getFAttr()); // Non-quantizable op if (!op->hasAttr(kQuantTraitAttrName)) return failure(); StringRef function_name = f_attr.getValue(); // TODO(b/228928859): Improve the getter function to match attributes rather
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/utils/device_util_test.cc
mlir::OwningOpRef<mlir::ModuleOp> module_ref = mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); AddDevicesToOp(*module_ref, /*device_set=*/nullptr); EXPECT_EQ((*module_ref)->getAttr("tf.devices"), nullptr); } TEST(DeviceUtilTest, GetDevicesFromOpNoDevicesAttribute) { mlir::MLIRContext context; mlir::OwningOpRef<mlir::ModuleOp> module_ref =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc
mlir::Attribute GetDeviceOfResource(mlir::func::FuncOp func, mlir::Value resource) { if (auto* resource_op = resource.getDefiningOp()) { return resource_op->getAttr(kDeviceAttr); } else { const auto resource_arg = resource.dyn_cast_or_null<BlockArgument>(); if (resource_arg && (resource_arg.getOwner() == &(func.front()))) { return func.getArgAttrOfType<mlir::StringAttr>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
fastapi/encoders.py
exclude = set(exclude) if isinstance(obj, BaseModel): # TODO: remove when deprecating Pydantic v1 encoders: Dict[Any, Any] = {} if not PYDANTIC_V2: encoders = getattr(obj.__config__, "json_encoders", {}) # type: ignore[attr-defined] if custom_encoder: encoders.update(custom_encoder) obj_dict = _model_dump( obj, mode="json",
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
private: LogicalResult matchAndRewrite(TF::PartitionedCallOp call_op, PatternRewriter& rewriter) const override { StringRef function_name = mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue(); if (!function_name.starts_with("composite_") || !call_op->hasAttr(kQuantTraitAttrName)) { return failure(); } absl::Status check_status;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0)