Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 116 for Fgetxattr (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

    }
    
    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::TF::RuntimeDevices* devices) {
      auto devices_attr = op->getAttr(kDevicesAttr);
      if (!devices_attr) return mlir::success();
    
      if (auto array_attr = mlir::dyn_cast<mlir::ArrayAttr>(devices_attr)) {
        return GetDevicesFromOp(op, array_attr, devices);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          return false;
        }
        // FusedMatMul kernel does not support grad_a/grad_b attrs
        if ((matmul->hasAttr("grad_a") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_a")).getValue()) ||
            (matmul->hasAttr("grad_b") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_b")).getValue())) {
          (void)rewriter.notifyMatchFailure(matmul, [&](Diagnostic &diag) {
            diag << "FusedMatMul kernel does not support grad_a/grad_b attrs";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/c/ops.cc

        cc_type v;                                                           \
        auto* cc_ctx = reinterpret_cast<InferenceContext*>(ctx);             \
        Status s = cc_ctx->GetAttr(attr_name, &v);                           \
        Set_TF_Status_from_Status(status, s);                                \
        if (s.ok()) {                                                        \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top