Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for populate (0.48 sec)

  1. tensorflow/c/c_api.cc

      }
    
      // Populate return_nodes
      DCHECK(tf_results->return_nodes.empty());
      tf_results->return_nodes.resize(results.return_nodes.size());
      for (int i = 0; i < results.return_nodes.size(); ++i) {
        tf_results->return_nodes[i] = ToOperation(results.return_nodes[i]);
      }
    
      // Populate missing unused map keys
      DCHECK(tf_results->missing_unused_key_names.empty());
    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)
  2. tensorflow/c/eager/gradient_checker.cc

        float grad_data[1];
        memcpy(&grad_data[0], TF_TensorData(grad_tensor),
               TF_TensorByteSize(grad_tensor));
        TF_DeleteTensor(grad_tensor);
        dtheta_approx[i] = grad_data[0];
      }
    
      // Populate *numerical_grad with the data from dtheta_approx.
      TF_RETURN_IF_ERROR(TestTensorHandleWithDims<float, TF_FLOAT>(
          ctx, dtheta_approx.data(), theta_dims.data(), num_dims, numerical_grad));
      TF_DeleteTensor(theta_tensor);
    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)
  3. tensorflow/c/eager/c_api.h

    TF_CAPI_EXPORT extern void TFE_ContextEnableRunMetadata(TFE_Context* ctx);
    
    // Disables tracing of RunMetadata on the ops executed from this context.
    TF_CAPI_EXPORT extern void TFE_ContextDisableRunMetadata(TFE_Context* ctx);
    
    // Populates the passed-in buffer with a serialized RunMetadata protocol buffer
    // containing any run metadata information accumulated so far and clears this
    // information.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      // Consider getting rid of this and making the behavior between number types
      // and string consistent.
      forward_op_.attrs.BuildNodeDef();
      // TODO(b/170307493): Populate skip_input_indices here.
      std::unique_ptr<GradientFunction> backward_fn;
      TF_RETURN_IF_ERROR(registry_.Lookup(forward_op_, &backward_fn));
      tape_->RecordOperation(forward_op_.inputs, forward_op_.outputs,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_unified_experimental_test.cc

      // Finalize the function by providing the returned values.
      TF_AbstractFunction* func;
      {
        // We want to return the output of both add operations, create a new list
        // and populate it.
        TF_OutputList* func_outputs = TF_NewOutputList();
        TF_OutputListPushBack(func_outputs, add_output1, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  6. tensorflow/c/env.h

    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void);
    
    // Returns the number of seconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void);
    
    // Populates a TF_ThreadOptions struct with system-default values.
    TF_CAPI_EXPORT extern void TF_DefaultThreadOptions(TF_ThreadOptions* options);
    
    // Returns a new thread that is running work_func and is identified
    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/c_api_function.cc

                                        "Encountered while creating function '",
                                        fn_name, "'");
        output_tensors->emplace_back(node, idx);
      }
      return absl::OkStatus();
    }
    
    // Populates `body_nodes` with the nodes that will become function's body.
    // Performs various checks.
    Status ComputeBodyNodes(
        const TF_Graph* fn_body, const char* fn_name, int num_opers,
        const TF_Operation* const* opers,
    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)
  8. tensorflow/c/c_api.h

    //
    // Design decisions made:
    // * Backing store for tensor memory has an associated deallocation
    //   function.  This deallocation function will point to client code
    //   for tensors populated by the client.  So the client can do things
    //   like shadowing a numpy array.
    // * We do not provide TF_OK since it is not strictly necessary and we
    //   are not optimizing for convenience.
    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)
  9. tensorflow/c/eager/tape.h

      // once) and produces the gradient of the target tensors with respect to the
      // source tensors. The output gradients are used if not empty and not
      // null. The result is populated with one tensor per target element.
      // When running backward functions, builds zeros-like tensors for
      // incoming grads which are nullptrs, unless `build_default_zeros_grads`
      // is set to false.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/grappler/grappler.h

    //     core and the plugin.
    //     * For example, `TF_InitGraph` function receives
    //       `TP_OptimizerRegistrationParams*` as input with `struct_size`
    //       populated by core. The plugin is responsible for setting
    //       `struct_size` as well, along with all other fields.
    //     * Refer to "TensorFlow Versioning Strategy" section at
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
Back to top