Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SetAttrString (0.07 sec)

  1. tensorflow/c/eager/gradients_internal.h

    absl::Status AddInputList(AbstractOperation*,
                              absl::Span<AbstractTensorHandle* const> inputs,
                              ForwardOperation*);
    
    // Sets the attrs in the `ForwardOperation`.
    absl::Status SetAttrString(AbstractOperation*, const char* attr_name,
                               const char* data, size_t length, ForwardOperation*);
    absl::Status SetAttrInt(AbstractOperation*, const char* attr_name,
    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/gradients_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
      }
      s = AddInput(check_numerics_op.get(), t.get(), &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      string message = "This is the way!";
      s = SetAttrString(check_numerics_op.get(), "message", message.data(),
                        message.length(), &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      int num_retvals = 1;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/abstract_operation.h

          absl::Span<AbstractTensorHandle* const> inputs) = 0;
      virtual absl::Status Execute(absl::Span<AbstractTensorHandle*> retvals,
                                   int* num_retvals) = 0;
    
      virtual absl::Status SetAttrString(const char* attr_name, const char* data,
                                         size_t length) = 0;
      virtual absl::Status SetAttrInt(const char* attr_name, int64_t value) = 0;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.cc

      }
      return absl::OkStatus();
    }
    
    absl::Status SetAttrString(AbstractOperation* op_, const char* attr_name,
                               const char* data, size_t length,
                               ForwardOperation* forward_op_) {
      forward_op_->attrs.Set(attr_name, StringPiece(data, length));
      return op_->SetAttrString(attr_name, data, length);
    }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        for (int i = 0; i < *num_retvals; ++i) {
          retvals[i] = new GraphTensor({operation, i}, g_);
        }
        return absl::OkStatus();
      }
    
      absl::Status SetAttrString(const char* attr_name, const char* data,
                                 size_t length) override {
        tensorflow::StringPiece s(data, length);
        op_->node_builder.Attr(attr_name, s);
        return absl::OkStatus();
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

      }
      TFE_DeleteOp(op);
      return ret;
    }
    
    void TFE_OpSetAttrString(TFE_Op* op, const char* attr_name, const void* value,
                             size_t length) {
      auto s = tensorflow::unwrap(op)->SetAttrString(
          attr_name, static_cast<const char*>(value), length);
      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