Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetNodeAttr (0.09 sec)

  1. tensorflow/compiler/jit/cluster_scoping_pass.cc

     private:
      Graph* graph_;
      OptimizerOptions::GlobalJitLevel global_jit_level_;
      size_t unique_scope_id_;
    };
    
    std::optional<string> GetXlaInternalScope(Node* node) {
      string scope;
      if (GetNodeAttr(node->attrs(), kXlaInternalScopeAttr, &scope).ok()) {
        return scope;
      }
    
      return std::nullopt;
    }
    
    void SetXlaInternalScope(Node* node, StringPiece scope) {
      node->AddAttr(kXlaInternalScopeAttr, scope);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

      }
    
      new_in->set_assigned_device_name(n->assigned_device_name());
      return new_in;
    }
    
    namespace {
    absl::StatusOr<bool> IsConstantSmall(Node* n) {
      const TensorProto* proto = nullptr;
      TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "value", &proto));
    
      int64_t total_elements = 1;
      for (const auto& dim : proto->tensor_shape().dim()) {
        if (dim.size() < 0) {
          return errors::Internal("Unknown dimension size in constant tensor ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top