Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for return (0.38 sec)

  1. tensorflow/c/eager/c_api_test_util.h

      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    // Return a scalar tensor handle with given values.
    template <class T, TF_DataType datatype>
    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, const T value) {
      T data[] = {value};
      return TestTensorHandleWithDims<T, datatype>(ctx, data, nullptr, 0);
    }
    
    // Return a tensor handle containing a 100x100 matrix of floats
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      size_t num_tensors() const { return tensors_.size(); }
      TFE_TensorHandle* tensor(size_t index) const { return tensors_[index].get(); }
    
      // If the `shape` argument to `FromTensorHandles` is specified, returns that.
      //
      // Otherwise if all of the tensors have the same shape, returns that via the
      // `shape` output argument. This blocks waiting for async tensors, may return
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

    // Import the graph serialized in `graph_def` into `graph`.
    // Convenience function for when only return outputs are needed.
    //
    // `num_return_outputs` must be the number of return outputs added (i.e. the
    // result of TF_ImportGraphDefOptionsNumReturnOutputs()).  If
    // `num_return_outputs` is non-zero, `return_outputs` must be of length
    // `num_return_outputs`. Otherwise it can be null.
    TF_CAPI_EXPORT extern void TF_GraphImportGraphDefWithReturnOutputs(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  4. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrInt(op.get(), "N", num_replicas);
      for (int i = 0; i < num_replicas; ++i) {
        TFE_OpAddInput(op.get(), components[i], status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
      }
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
      TFE_TensorHandle* result_handle;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/swig/testdata/callback/main.h

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    class Callback {
    public:
    	virtual ~Callback() { }
    	virtual std::string run() { return "Callback::run"; }
    };
    
    class Caller {
    private:
    	Callback *callback_;
    public:
    	Caller(): callback_(0) { }
    	~Caller() { delCallback(); }
    	void delCallback() { delete callback_; callback_ = 0; }
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 529 bytes
    - Viewed (0)
  6. tensorflow/c/env.h

    // The caller is responsible for freeing the returned pointer.
    TF_CAPI_EXPORT extern char* TF_GetTempFileName(const char* extension);
    
    // Returns the number of nanoseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void);
    
    // Returns the number of microseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void);
    
    // Returns the number of seconds since the Unix epoch.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  7. tensorflow/c/eager/abstract_context.h

      explicit AbstractContext(AbstractContextKind kind) : kind_(kind) {}
      virtual ~AbstractContext() {}
    
     public:
      AbstractContextKind getKind() const { return kind_; }
    
      // Release any underlying resources, including the interface object.
      //
      // WARNING: The destructor of this class is marked as protected to disallow
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h

    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses `sendfile` if available (i.e., linux 2.6.33 or later) or an
    // intermediate buffer if not.
    //
    // Returns number of bytes transferred or -1 on failure.
    int CopyFileContents(int dst_fd, int src_fd, off_t size);
    
    }  // namespace tf_posix_filesystem
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental_reader.h

    // test();
    // int64_t value = TFE_MonitoringReadCounter1(reader, "label-value");
    
    // Opaque handle to a reader.
    typedef struct TFE_MonitoringCounterReader TFE_MonitoringCounterReader;
    
    // Returns a handle to be used for reading values from streamz counter. The
    // counter can have been created with any number of labels.
    TF_CAPI_EXPORT extern TFE_MonitoringCounterReader*
    TFE_MonitoringNewCounterReader(const char* name);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

        released_ = src.released_;
        f_ = src.release();
        return *this;
      }
    
      ~Cleanup() {
        if (!released_) f_();
      }
    
      // Releases the cleanup function instead of running it.
      // Hint: use c.release()() to run early.
      F release() {
        released_ = true;
        return std::move(f_);
      }
    
      bool is_released() const { return released_; }
    
     private:
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 11:16:00 GMT 2020
    - 3.4K bytes
    - Viewed (0)
Back to top