Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SetAttrBool (0.07 sec)

  1. tensorflow/c/eager/gradients_internal.h

                            int64_t value, ForwardOperation*);
    absl::Status SetAttrFloat(AbstractOperation*, const char* attr_name,
                              float value, ForwardOperation*);
    absl::Status SetAttrBool(AbstractOperation*, const char* attr_name, bool value,
                             ForwardOperation*);
    absl::Status SetAttrType(AbstractOperation*, const char* attr_name,
                             DataType value, ForwardOperation*);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/abstract_operation.h

      virtual absl::Status SetAttrInt(const char* attr_name, int64_t value) = 0;
      virtual absl::Status SetAttrFloat(const char* attr_name, float value) = 0;
      virtual absl::Status SetAttrBool(const char* attr_name, bool value) = 0;
      virtual absl::Status SetAttrType(const char* attr_name, DataType value) = 0;
      virtual absl::Status SetAttrShape(const char* attr_name, const int64_t* dims,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients.cc

      forward_op_->attrs.Set(attr_name, value);
      return op_->SetAttrFloat(attr_name, value);
    }
    absl::Status SetAttrBool(AbstractOperation* op_, const char* attr_name,
                             bool value, ForwardOperation* forward_op_) {
      forward_op_->attrs.Set(attr_name, value);
      return op_->SetAttrBool(attr_name, value);
    }
    absl::Status SetAttrType(AbstractOperation* op_, const char* attr_name,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      absl::Status SetAttrFloat(const char* attr_name, float value) override {
        op_->node_builder.Attr(attr_name, value);
        return absl::OkStatus();
      }
      absl::Status SetAttrBool(const char* attr_name, bool value) override {
        op_->node_builder.Attr(attr_name, value);
        return absl::OkStatus();
      }
      absl::Status SetAttrType(const char* const attr_name,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.cc

      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    void TFE_OpSetAttrBool(TFE_Op* op, const char* attr_name, unsigned char value) {
      auto s = tensorflow::unwrap(op)->SetAttrBool(attr_name,
                                                   (value == 0) ? false : true);
      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top