24.08
|
Go to the documentation of this file.
34 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
RankLayer(const char *name)
Constructor to create a RankLayer.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Rank returns a scalar specifying the rank of the input tensor.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Rank type.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of RankLayer.
Copyright (c) 2021 ARM Limited and Contributors.
~RankLayer()=default
Default destructor.
Layer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.