- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 242 for get_attr (0.24 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc
<< min_num_elements_for_weights_ << " elements)."; call_op->removeAttr(kQuantTraitAttrName); } } StringRef function_name = mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue(); if ((quantization_method_ == tensorflow::quantization::QuantizationMethod:: METHOD_DYNAMIC_RANGE_INT8) && (function_name.contains("batch_matmul") ||
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/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) -
pkg/registry/certificates/certificates/strategy.go
// WarningsOnUpdate returns warnings for the given update. func (csrApprovalStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string { return nil } // GetAttrs returns labels and fields of a given object for filtering purposes. func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { csr, ok := obj.(*certificates.CertificateSigningRequest) if !ok { return nil, nil, fmt.Errorf("not a certificatesigningrequest")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 21:41:43 UTC 2022 - 11.4K 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/lite/transforms/raise_custom_ops.cc
for (const auto &idx_args : llvm::enumerate(new_block->getArguments())) { inner_op->setOperand(idx_args.index(), idx_args.value()); } custom_op->setAttrs(inner_op->getAttrs()); builder.create<YieldOp>(loc, inner_op->getResults()); custom_op.getBody().takeBody(region); op->replaceAllUsesWith(custom_op); op->erase(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc
op.getLoc(), /*result=*/ mlir::cast<TensorType>(op.getResult().getType()) .clone(builder.getI4Type()), /*operand=*/op.getOperands(), op->getAttrs()); rewriter.replaceAllUsesWith(op.getResult(), new_gather_op.getResult()); return success(); } }; class ReduceTypePrecisionPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc
// Clone this old replicate op but with new result types. auto new_replicate_op = builder.create<tf_device::ReplicateOp>( replicate_op->getLoc(), new_result_types, replicate_op->getOperands(), replicate_op->getAttrs()); // Move region to the new op. new_replicate_op.getRegion().takeBody(replicate_op.getRegion()); // Replace all old uses with new op results. int old_num_results = replicate_op->getNumResults();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc
void GroupByDialectPass::processFunction( mlir::func::FuncOp func, int& counter, llvm::SmallDenseSet<StringRef>& dialects, Operation* module) { // don't re-process functions we generated if (func->getAttr("dialect")) return; processRegion(func.getBody(), counter, dialects, module); } void GroupByDialectPass::processRegion(mlir::Region& region, int& counter,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
// OperationState so we can add regions to the new up. OperationState state(op->getLoc(), op->getName().getStringRef(), operands, new_results, op->getAttrs(), op->getSuccessors()); for (Region ®ion : op->getRegions()) { Region &new_region = *state.addRegion(); rewriter.inlineRegionBefore(region, new_region, new_region.begin());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
pkg/registry/core/persistentvolume/storage/storage.go
TableConvertor: printerstorage.TableConvertor{TableGenerator: printers.NewTableGenerator().With(printersinternal.AddHandlers)}, } options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: persistentvolume.GetAttrs} if err := store.CompleteWithOptions(options); err != nil { return nil, nil, err } statusStore := *store statusStore.UpdateStrategy = persistentvolume.StatusStrategy
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 4.3K bytes - Viewed (0)