Home
last modified time | relevance | path

Searched refs:block_dims (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dbatchtospace_op.cc53 const int block_dims = orig_block_shape.dim_size(0); in BatchToSpaceOpCompute() local
55 context, orig_input_tensor.dims() >= 1 + block_dims, in BatchToSpaceOpCompute()
56 errors::InvalidArgument("input rank should be >= ", 1 + block_dims, in BatchToSpaceOpCompute()
61 block_dims == orig_crops.dim_size(0) && in BatchToSpaceOpCompute()
63 errors::InvalidArgument("crops should have shape [", block_dims, in BatchToSpaceOpCompute()
76 for (; removed_prefix_block_dims < block_dims; ++removed_prefix_block_dims) { in BatchToSpaceOpCompute()
87 for (; removed_suffix_block_dims < block_dims - removed_prefix_block_dims; in BatchToSpaceOpCompute()
89 const int dim = block_dims - 1 - removed_suffix_block_dims; in BatchToSpaceOpCompute()
98 for (int block_dim = 0; block_dim < block_dims; ++block_dim) { in BatchToSpaceOpCompute()
114 block_dims - removed_prefix_block_dims - removed_suffix_block_dims; in BatchToSpaceOpCompute()
[all …]
Dspacetobatch_op.cc55 const int block_dims = orig_block_shape.dim_size(0); in SpaceToBatchOpCompute() local
56 if (orig_input_tensor.dims() < 1 + block_dims) { in SpaceToBatchOpCompute()
57 return errors::InvalidArgument("input rank should be >= ", 1 + block_dims, in SpaceToBatchOpCompute()
62 block_dims == orig_paddings.dim_size(0) && in SpaceToBatchOpCompute()
64 return errors::InvalidArgument("paddings should have shape [", block_dims, in SpaceToBatchOpCompute()
79 for (; removed_prefix_block_dims < block_dims; ++removed_prefix_block_dims) { in SpaceToBatchOpCompute()
90 for (; removed_suffix_block_dims < block_dims - removed_prefix_block_dims; in SpaceToBatchOpCompute()
92 const int dim = block_dims - 1 - removed_suffix_block_dims; in SpaceToBatchOpCompute()
101 for (int block_dim = 0; block_dim < block_dims; ++block_dim) { in SpaceToBatchOpCompute()
110 block_dims - removed_prefix_block_dims - removed_suffix_block_dims; in SpaceToBatchOpCompute()
[all …]
/external/tensorflow/tensorflow/contrib/model_pruning/python/
Dpruning_utils.py96 def expand_tensor(tensor, block_dims): argument
127 if len(block_dims) != 2:
130 block_height, block_width = block_dims
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_gpu_executor.cc287 const BlockDim& block_dims, const KernelBase& kernel, in Launch() argument
300 VlogOccupancyInfo(kernel, thread_dims, block_dims); in Launch()
331 GetGpuContext(stream), hipfunc, block_dims.x, block_dims.y, in Launch()
332 block_dims.z, thread_dims.x, thread_dims.y, thread_dims.z, in Launch()
337 << "; block dim: " << block_dims.ToString(); in Launch()
421 const BlockDim& block_dims) { in VlogOccupancyInfo() argument
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_gpu_executor.cc421 const BlockDim& block_dims, const KernelBase& kernel, in Launch() argument
434 VlogOccupancyInfo(kernel, thread_dims, block_dims); in Launch()
448 if (!GpuDriver::LaunchKernel(context_, cufunc, block_dims.x, block_dims.y, in Launch()
449 block_dims.z, thread_dims.x, thread_dims.y, in Launch()
456 << "; block dim: " << block_dims.ToString(); in Launch()
468 const BlockDim& block_dims) { in VlogOccupancyInfo() argument
/external/tensorflow/tensorflow/stream_executor/
Dtrace_listener.h50 const BlockDim& block_dims, in LaunchSubmit() argument
Dstream_executor_pimpl.h453 const BlockDim &block_dims, const KernelBase &kernel,
867 inline Stream &Stream::ThenLaunch(ThreadDim thread_dims, BlockDim block_dims, in ThenLaunch() argument
882 parent_->Launch(this, thread_dims, block_dims, kernel, kernel_args); in ThenLaunch()
Dstream_executor_pimpl.cc480 const BlockDim &block_dims, in Launch() argument
483 SubmitTrace(&TraceListener::LaunchSubmit, stream, thread_dims, block_dims, in Launch()
486 return implementation_->Launch(stream, thread_dims, block_dims, kernel, args); in Launch()
Dstream_executor_internal.h192 const BlockDim &block_dims, const KernelBase &k, in Launch() argument
Dstream.h171 Stream &ThenLaunch(ThreadDim thread_dims, BlockDim block_dims,
/external/tensorflow/tensorflow/stream_executor/gpu/
Dgpu_executor.h73 const BlockDim& block_dims, const KernelBase& k,
270 const BlockDim& block_dims);
/external/tensorflow/tensorflow/compiler/tests/
Drandomized_tests.cc1231 std::vector<int64> block_dims = in TEST_F() local
1239 input_dims[1 + i] = block_dims[i]; in TEST_F()
1265 std::vector<int64> block_dims = RandomDims(1, 3, 0, 5); in TEST_F() local
1266 int num_block_dims = block_dims.size(); in TEST_F()
1269 RandomDims(block_dims.size(), block_dims.size(), 0, 4); in TEST_F()
1274 input_dims[0] *= block_dims[i]; in TEST_F()
1297 std::vector<int32>(block_dims.begin(), block_dims.end()))) in TEST_F()
2957 std::vector<int64> block_dims = RandomDims(4, 4, 0, 5); in TEST_F() local
2964 input_dims[1 + i] = block_dims[i] * block_size; in TEST_F()
2996 std::vector<int64> block_dims = RandomDims(1, 3, 0, 5); in TEST_F() local
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/interpreter/
Dexecutor.h66 const BlockDim &block_dims, const KernelBase &kernel, in Launch() argument
/external/tensorflow/tensorflow/stream_executor/host/
Dhost_gpu_executor.h58 const BlockDim &block_dims, const KernelBase &kernel, in Launch() argument
/external/tensorflow/tensorflow/core/util/
Dmkl_util.h1630 md.layout_desc.blocking.block_dims[i] = 1; in CreateBlockedMemDescHelper()