Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for memory_allocator (0.43 sec)

  1. tensorflow/compiler/jit/xla_tensor.cc

      xla::Shape on_host_shape =
          xla::ShapeUtil::DeviceShapeToHostShape(on_device_shape);
      xla::ScopedShapedBuffer shaped_buffer(on_host_shape, on_device_shape,
                                            client->backend().memory_allocator(),
                                            device_ordinal);
      for (auto& index_to_buffer : shaped_buffer.buffers()) {
        xla::Shape subshape =
            xla::ShapeUtil::GetSubshape(on_device_shape, index_to_buffer.first);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util.cc

                                         /*source_base_index=*/{},
                                         /*target_base_index=*/{0});
        output = ScopedShapedBuffer(std::move(buffer), output.memory_allocator());
      }
    
      std::shared_ptr<se::Event> definition_event;
      if (use_multiple_streams_ && stream) {
        TF_ASSIGN_OR_RETURN(definition_event, stream->parent()->CreateEvent());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go

    	} else {
    		embeddedEncoder = scope.Serializer.EncoderForVersion(serializer.Serializer, contentKind.GroupVersion())
    	}
    
    	var memoryAllocator runtime.MemoryAllocator
    
    	if encoderWithAllocator, supportsAllocator := embeddedEncoder.(runtime.EncoderWithAllocator); supportsAllocator {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 16:37:25 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go

    // by caching created but unused items for later reuse, relieving pressure on the garbage collector.
    //
    // Usage:
    //
    //	memoryAllocator := runtime.AllocatorPool.Get().(*runtime.Allocator)
    //	defer runtime.AllocatorPool.Put(memoryAllocator)
    //
    // A note for future:
    //
    //	consider introducing multiple pools for storing buffers of different sizes
    //	perhaps this could allow us to be more efficient.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    	return s.encode(obj, w, memAlloc)
    }
    
    // Encode serializes the provided object to the given writer.
    func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error {
    	return s.encode(obj, w, &runtime.SimpleAllocator{})
    }
    
    func (s *Serializer) encode(obj runtime.Object, w io.Writer, memAlloc runtime.MemoryAllocator) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/helper.go

    	}
    	return obj, gvk, err
    }
    
    type encoderWithAllocator struct {
    	encoder      EncoderWithAllocator
    	memAllocator MemoryAllocator
    }
    
    // NewEncoderWithAllocator returns a new encoder
    func NewEncoderWithAllocator(e EncoderWithAllocator, a MemoryAllocator) Encoder {
    	return &encoderWithAllocator{
    		encoder:      e,
    		memAllocator: a,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 22:54:34 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go

    	if co, ok := obj.(runtime.CacheableObject); ok {
    		return co.CacheEncode(c.Identifier(), func(obj runtime.Object, w io.Writer) error { return c.doEncode(obj, w, memAlloc) }, w)
    	}
    	return c.doEncode(obj, w, memAlloc)
    }
    
    func (c *codec) doEncode(obj runtime.Object, w io.Writer, memAlloc runtime.MemoryAllocator) error {
    	encodeFn := c.encoder.Encode
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go

    	//     }
    	//     return e.doEncode(obj, w)
    	//   }
    	Identifier() Identifier
    }
    
    // MemoryAllocator is responsible for allocating memory.
    // By encapsulating memory allocation into its own interface, we can reuse the memory
    // across many operations in places we know it can significantly improve the performance.
    type MemoryAllocator interface {
    	// Allocate reserves memory for n bytes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/stream_executor/stream_executor.cc

    #include "tensorflow/c/tf_status_helper.h"
    #include "xla/stream_executor/executor_cache.h"
    #include "xla/stream_executor/host_memory_allocation.h"
    #include "xla/stream_executor/memory_allocation.h"
    #include "xla/stream_executor/platform.h"
    #include "xla/stream_executor/platform_manager.h"
    #include "xla/stream_executor/stream.h"
    #include "xla/stream_executor/stream_executor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top