Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 66 for hasAttr (0.14 sec)

  1. tensorflow/api_template.__init__.py

    _API_MODULE = _sys.modules[__name__].bitwise
    _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
    _current_module = _sys.modules[__name__]
    
    if not hasattr(_current_module, "__path__"):
      __path__ = [_tf_api_dir]
    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    
    # Load tensorflow-io-gcs-filesystem if enabled
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 06:27:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

              }
            }
          }
        });
      }
      // Remove `kSkipIslandOutlining` attributes.
      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        if (func_op->hasAttr(mlir::TF::kSkipIslandOutlining)) {
          func_op->removeAttr(mlir::TF::kSkipIslandOutlining);
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. fastapi/_compat.py

        return (
            _annotation_is_complex(annotation)
            or _annotation_is_complex(origin)
            or hasattr(origin, "__pydantic_core_schema__")
            or hasattr(origin, "__get_pydantic_core_schema__")
        )
    
    
    def field_annotation_is_scalar(annotation: Any) -> bool:
        # handle Ellipsis here to make tuple[int, ...] work nicely
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. tensorflow/api_template_v1.__init__.py

    _API_MODULE = _sys.modules[__name__].bitwise  # pylint: disable=undefined-variable
    _current_module = _sys.modules[__name__]
    _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
    if not hasattr(_current_module, "__path__"):
      __path__ = [_tf_api_dir]
    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

    // version 8 and above.
    constexpr StringRef kUsesShapePolymorphismAttr = "jax.uses_shape_polymorphism";
    
    bool IsInLiftedFunc(Operation* op) {
      if (op == nullptr) return false;
      return op->getParentOfType<func::FuncOp>()->hasAttr(kFusedFunctionAttr);
    }
    
    bool IsInStableHloOpRegion(Operation* op) {
      if (op == nullptr) return false;
      auto parent_op = op->getParentOp();
      return parent_op != nullptr && stablehlo::IsStablehloOp(parent_op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      if (op->hasAttr(TF::kReplicationInfoAttr)) {
        op->setAttr(TF::kReplicationInfoAttr, attr);
      }
    }
    
    // Replaces the replication region attribute if it already exists.
    void UpdateReplicationAttr(TF::TPUCompilationResultOp& op, StringAttr attr) {
      // Special case for getting the replication region for
      // TPUCompilationResultsOp.
      if (op->hasAttr(kTpuCompilationStatus)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

      // A map to find an attribute from its identifier.
      llvm::StringMap<Attribute> identifier_to_attr;
    
      for (Operation& inner_op : float_func.getBody().front().getOperations()) {
        if (!inner_op.hasAttr(kAttrMapAttribute)) continue;
        // Insert quantization related attribute if they exists. Quantization
        // attributes are generated in the prepare pass so the attr_map doesn't
        // contain the attribute names.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

            if (walked_op->hasAttr(kXlaOutsideCompilationAttr)) {
              return WalkResult::interrupt();
            }
            return WalkResult::advance();
          })
          .wasInterrupted();
    }
    
    // Returns whether `op` or any ancestors of `op` are outside compiled.
    bool HasOutsideCompilationAncestor(Operation* op) {
      while (op) {
        if (op->hasAttr(kXlaOutsideCompilationAttr)) {
          return true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

                                    PatternRewriter &rewriter) const override {
        // Removes the custom call with sharding op if the operand type is the
        // same as the result type.
        if (op->hasAttr(kShardingAttr) && op.getCallTargetName() == kShardingName &&
            op.getNumOperands() == 1 && op.getNumResults() == 1 &&
            op.getOperands().front().getType() ==
                op.getResults().front().getType()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

                                    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
        // than function name.
    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