Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for qhold (0.18 sec)

  1. tensorflow/c/experimental/gradients/nn_grad.cc

      }
      ~ReluGradientFunction() override {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Unref();
          }
        }
      }
    
     private:
      // TODO(b/174778737): Only hold needed outputs.
      vector<AbstractTensorHandle*> forward_outputs_;
    };
    
    Status BroadcastMul(AbstractContext* ctx, AbstractTensorHandle* vec,
                        AbstractTensorHandle* mat,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      for (int i = 0; i < noutputs; ++i) {
        c_outputs[i] = nullptr;
      }
    }
    
    // TF_TensorToTensorV1 decodes a string serialization to DT_RESOURCE.
    // In the TFv1 convention, TF_Tensor can hold a string serialization of
    // DT_RESOURCE. The string serialization is converted back to a
    // ResourceHandle during Session run where the TF_Tensor is converted to a
    // Tensor.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    #include "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 a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    }
    BENCHMARK(BM_ReadVariable);
    
    TEST(CAPI, StringAttributes) {
      // Test that TFE_OpSetAttrString doesn't hold on to the value after it
      // returns.
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/grappler/grappler.cc

        if ((p + s.size()) > (static_cast<char*>(storage) + storage_size)) {
          tsl::Set_TF_Status_from_Status(
              status,
              absl::InvalidArgumentError(
                  "Not enough storage to hold the requested list of nodes"));
          return;
        }
        memcpy(values[index], s.data(), s.size());
        p += s.size();
        index++;
      }
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/gradients/math_grad.cc

      }
      ~MatMulGradientFunction() override {
        for (auto input : forward_inputs_) {
          if (input) {
            input->Unref();
          }
        }
      }
    
     private:
      // TODO(b/174778737): Only hold needed inputs.
      vector<AbstractTensorHandle*> forward_inputs_;
      AttrBuilder forward_attrs_;
    };
    
    class NegGradientFunction : public GradientFunction {
     public:
      Status Compute(AbstractContext* ctx,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return ptr->getKind() == kGraph;
      }
      ~GraphOperation() override {}
    
     private:
      friend class GraphContext;  // For access to op_.
      TF_Graph* g_;
      std::unique_ptr<TF_OperationDescription> op_;
      // Hold `op_type` and `op_name` till both are available since we need both
      // to build a graph operation.
      string op_type_;
      const char* op_name_ = nullptr;
      // TODO(srbs): Use this.
      string device_name_;
    };
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
Back to top