Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev branch master merge #23

merged 14 commits into from Jun 22, 2019

CheckNumerics op wrapper

  • Loading branch information...
raver119 committed Jun 18, 2019
commit 8399ef0e11d7a23a3636516fab7ee6fdc7d8f313
@@ -0,0 +1,55 @@
* Copyright (c) 2015-2018 Skymind, Inc.
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* 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.
* SPDX-License-Identifier: Apache-2.0

package org.nd4j.linalg.api.ops.impl.transforms;

import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.linalg.api.buffer.DataType;
import org.nd4j.linalg.api.ops.DynamicCustomOp;

import java.util.Collections;
import java.util.List;

* CheckNumerics op wrapper
* @author
public class CheckNumerics extends DynamicCustomOp {
public String opName() {
return "check_numerics";

public String tensorflowName() {
return "CheckNumerics";

public List<SDVariable> doDiff(List<SDVariable> f1) {
throw new UnsupportedOperationException();

public int numOutputArguments(){
return 1;

public List<DataType> calculateOutputDataTypes(List<DataType> inputDataTypes){
return Collections.singletonList(inputDataTypes.get(0));
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.