text
stringlengths
0
2.2M
guard.reset();
namedinference::propagate_names(output, input);
namedinference::propagate_names(indices, input);
return std::tuple<Tensor, Tensor>(output, indices);
}
Tensor& max_pool3d_with_indices_backward_out_cpu(const Tensor& gradOutput_,
const Tensor& input,
IntArrayRef kernel_size,
IntArrayRef stride,
IntArrayRef padding,
IntArrayRef dilation,
bool ceil_mode,
const Tensor& indices,
Tensor& gradInput)
{
max_pool3d_with_indices_backward_out_cpu_template(
gradInput,
gradOutput_,
input,
indices,
kernel_size,
stride,
padding,
dilation,
ceil_mode);
return gradInput;
}
Tensor max_pool3d_with_indices_backward_cpu(
const Tensor& gradOutput_,
const Tensor& input,
IntArrayRef kernel_size,
IntArrayRef stride,
IntArrayRef padding,
IntArrayRef dilation,
bool ceil_mode,
const Tensor& indices)
{
auto gradInput = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT);
max_pool3d_with_indices_backward_out_cpu_template(
gradInput,
gradOutput_,
input,
indices,
kernel_size,
stride,
padding,
dilation,
ceil_mode);
return gradInput;
}
} // at::native
} // at
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/
#include <juce_events/juce_events.cpp>
#include "basetypes.h"
#include "htkfeatio_utils.h"
#include "UtteranceDerivativeBuffer.h"
namespace Microsoft { namespace MSR { namespace CNTK {
// Constructor.
template <class ElemType>
UtteranceDerivativeBuffer<ElemType>::UtteranceDerivativeBuffer(
size_t numberOfuttsPerMinibatch,
UtteranceDerivativeComputationInterface<ElemType>* derivativeInterface)
{
assert(derivativeInterface != NULL);
m_derivativeInterface = derivativeInterface;
m_numUttsPerMinibatch = numberOfuttsPerMinibatch;
m_needLikelihood = true;
m_currentObj = 0;
m_uttReady.assign(m_numUttsPerMinibatch, false);
m_epochEnd = false;
m_dimension = 0;
}
template <class ElemType>
void UtteranceDerivativeBuffer<ElemType>::ProcessUttInfo(
const std::vector<std::vector<std::pair<wstring, size_t>>>& uttInfo,
const MBLayoutPtr pMBLayout,
std::vector<std::vector<std::pair<
wstring, std::pair<size_t, size_t>>>>* uttInfoInMinibatch) const
{
assert(uttInfoInMinibatch != NULL);
assert(uttInfo.size() == m_numUttsPerMinibatch);
assert(pMBLayout->GetNumParallelSequences() == m_numUttsPerMinibatch);