leezu commented on a change in pull request #17841: Gluon data 2.0: c++ dataloader and built-in image/bbox transforms URL: https://github.com/apache/incubator-mxnet/pull/17841#discussion_r395924113
########## File path: src/imperative/naive_cached_op.h ########## @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// Threadsafe and minimal functionality cached op version for Inference +// lot of code reused from cached_op.h +#ifndef MXNET_IMPERATIVE_NAIVE_CACHED_OP_H_ +#define MXNET_IMPERATIVE_NAIVE_CACHED_OP_H_ + +#include <mxnet/imperative.h> +#include <vector> +#include <atomic> +#include <utility> +#include <string> +#include <unordered_map> +#include "./cached_op.h" + + + +namespace mxnet { +/*! \brief NaiveCachedOp which does not involve engine which is useful when executed in parallel. Review comment: @eric-haibin-lin how many CachedOp's will we have after the unification? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
