Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for New (0.27 sec)

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

    GradientFunction* ReluRegisterer(const ForwardOperation& op) {
      return new ReluGradientFunction(op.outputs);
    }
    
    GradientFunction* SparseSoftmaxCrossEntropyWithLogitsRegisterer(
        const ForwardOperation& op) {
      return new SparseSoftmaxCrossEntropyWithLogitsGradientFunction(op.outputs);
    }
    
    GradientFunction* BiasAddRegisterer(const ForwardOperation& op) {
      return new BiasAddGradientFunction(op.attrs);
    }
    
    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

    using tensorflow::string;
    
    namespace tensorflow {
    namespace tracing {
    typedef absl::flat_hash_map<std::string, tracing::FactoryFunction> FactoriesMap;
    
    static FactoriesMap& GetFactories() {
      static FactoriesMap* factories = new FactoriesMap;
      return *factories;
    }
    
    static tracing::FactoryFunction default_factory;
    
    void RegisterTracingEngineFactory(const string& name, FactoryFunction factory) {
      assert((!GetFactories().count(name)) ||
    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/experimental/gradients/grad_test_helper.cc

        ASSERT_EQ(num_elem_numerical, num_elem_analytical);
    
        float* dnumerical = new float[num_elem_numerical]{0};
        memcpy(&dnumerical[0], TF_TensorData(numerical_tensor),
               TF_TensorByteSize(numerical_tensor));
        float* danalytical = new float[num_elem_analytical]{0};
        memcpy(&danalytical[0], TF_TensorData(analytical_tensor),
               TF_TensorByteSize(analytical_tensor));
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/graph_function.cc

    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    namespace tracing {
    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/array_grad.cc

        }
        return absl::OkStatus();
      }
      ~IdentityNGradientFunction() override {}
    };
    }  // namespace
    
    GradientFunction* IdentityNRegisterer(const ForwardOperation& op) {
      return new IdentityNGradientFunction;
    }
    
    }  // namespace gradients
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/custom_gradient_test.cc

      tape.Watch(inputs[0]);  // Watch x.
      AbstractTensorHandle* exp_output;
      TF_RETURN_IF_ERROR(ops::Exp(ctx, inputs[0], &exp_output, "Exp"));
      std::unique_ptr<GradientFunction> gradient_function(
          new PassThroughGradientFunction);
      tape.RecordOperation(inputs, {exp_output}, gradient_function.release());
      TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx,
                                              /*targets*/ {exp_output},
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. tensorflow/c/env.cc

      delete list;
    }
    TF_StringStream* TF_GetChildren(const char* dirname, TF_Status* status) {
      auto* children = new std::vector<::tensorflow::string>;
    
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->GetChildren(dirname, children));
    
      auto* list = new TF_StringStream;
      list->list = children;
      list->position = 0;
      return list;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/not_differentiable.cc

        grad_inputs[i] = nullptr;
      }
      return OkStatus();
    }
    
    Status RegisterNotDifferentiable(GradientRegistry* registry, const string& op) {
      return registry->Register(op, [](const ForwardOperation& op) {
        return new NotDifferentiableGradientFunction;
      });
    }
    }  // namespace gradients
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 15 01:15:58 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/custom_device_testutil.cc

      TFE_CustomDevice* custom_device = new TFE_CustomDevice;
      custom_device->copy_tensor_to_device = &CopyToLoggingDevice;
      custom_device->copy_tensor_from_device = &CopyTensorFromLoggingDevice;
      custom_device->delete_device = &DeleteLoggingDevice;
      custom_device->execute = &LoggingDeviceExecute;
      *device = custom_device;
      LoggingDevice* logging_device = new LoggingDevice;
      logging_device->arrived_flag = arrived_flag;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

          /*byte_strides=*/std::nullopt,
          xla::PjRtClient::HostBufferSemantics::kImmutableOnlyDuringCall, nullptr,
          c_api_client->pjrt_c_client()->client->addressable_devices()[0]);
      CHECK_OK(buffer.status());
    
      return new PJRT_Buffer{std::move(*buffer), c_api_client->pjrt_c_client()};
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorNoBuffer) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
Back to top