Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for given (0.19 sec)

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

      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        /* Given upstream grad U and a BiasAdd: A + bias, the gradients are:
         *
         *    dA = U
         *    dbias = reduceSum(U, dims = channel_dim)
         */
    
        AbstractTensorHandle* upstream_grad = grad_outputs[0];
    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/eager/c_api_unified_experimental.cc

    void TF_SetTracingImplementation(const char* name, TF_Status* s) {
      tsl::Set_TF_Status_from_Status(s, SetDefaultTracingEngine(name));
    }
    
    // Creates a new TensorFlow function, it is an execution context attached to a
    // given tracing context.
    TF_ExecutionContext* TF_CreateFunction(const char* fn_name, TF_Status* s) {
      return wrap(CreateTracingExecutionContext(fn_name, s));
    }
    
    TF_AbstractFunction* TF_FinalizeFunction(TF_ExecutionContext* ctx,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradient_checker.cc

    // ================== Helper functions =================
    
    // Fills data with values [start,end) with given step size.
    void Range(vector<int32_t>* data, int32_t start, int32_t end,
               int32_t step = 1) {
      for (int32_t i = start; i < end; i += step) {
        (*data)[i] = i;
      }
    }
    
    // Fills out_dims with the dimensions of the given tensor.
    void GetDims(const TF_Tensor* t, int64_t* out_dims) {
      int num_dims = TF_NumDims(t);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function.cc

      tensorflow::FunctionDef fdef;
      bool success = fdef.ParseFromArray(proto, proto_len);
      if (!success) {
        status->status = InvalidArgument(
            "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
        return nullptr;
      }
    
      TF_Function* func = new TF_Function();
      func->record = new tensorflow::FunctionRecord(std::move(fdef), {}, false);
      status->status = absl::OkStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  5. tensorflow/c/eager/c_api_distributed_test.cc

                             std::vector<std::string>* control_ret_node_names,
                             bool* control_rets_updated) override {
        // Inject failure to function instantiation if finding a node that contains
        // the given node name (error_node_) and requested device (error_device_).
        for (const auto node : graph->get()->nodes()) {
          if (node->name().find(error_node_) != string::npos &&
              node->requested_device() == error_device_) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/math_grad.cc

          }
        }
      }
    
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        /* Given upstream grad U and a matmul op A*B, the gradients are:
         *
         *    dA = U * B.T
         *    dB = A.T * U
         *
         *    where A.T means `transpose(A)`
         */
    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/experimental/filesystem/modular_filesystem_registration.cc

            "Trying to register filesystem without `cleanup` operation on writable "
            "files");
    
      return OkStatus();
    }
    
    // Validates the read only memory region operations given by the plugin.
    static Status ValidateHelper(const TF_ReadOnlyMemoryRegionOps* ops) {
      if (ops == nullptr) {
        // read only memory region support is always optional
        return OkStatus();
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental_test.cc

      ~ShapeInferenceTest() override {
        TFE_DeleteContextOptions(tfe_context_options_);
        TFE_DeleteContext(tfe_context_);
        TF_DeleteStatus(status_);
      }
    
      // Checks the expected result of shape inference for the given `op`.
      void CheckOutputShapes(
          TFE_Op* op,
          const std::vector<absl::optional<std::vector<int64_t>>>& input_shapes_vec,
          const std::vector<TF_Tensor*>& input_tensors,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api.cc

    using tensorflow::string;
    
    namespace {
    
    string DeviceName(const tensorflow::Device* d) {
      return (d == nullptr) ? "cpu:0" : d->name();
    }
    
    // Annotate eager runtime construction context to the given `function_def` as
    // an attribute.
    void AnnotateEagerRuntimeConstructionContext(
        tensorflow::FunctionDef& function_def) {
      tensorflow::AttrValue value;
      SetAttrValue("kEagerRuntime", &value);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  10. tensorflow/c/c_api_function_test.cc

      char proto[] = {0x0, 0x0, 0x0, 0x0};
      func_ = TF_FunctionImportFunctionDef(proto, 4, s_);
      EXPECT_TRUE(func_ == nullptr);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_));
      EXPECT_EQ(string("Invalid FunctionDef given to TF_FunctionImportFunctionDef"),
                string(TF_Message(s_)));
    }
    
    TEST_F(CApiFunctionTest, Attribute) {
      DefineFunction(func_name_, &func_);
    
      // Get non existent attribute
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top